User overview show address ID error fix

local jquery
This commit is contained in:
Ricsi
2017-01-13 22:36:57 +01:00
parent ca5b827bf2
commit 0fec3f0d7b
5 changed files with 22 additions and 3 deletions

View File

@@ -13,7 +13,8 @@ class user_kid extends user_parent {
private $user_email;
private $user_last_login;
private $user_gender;
private $user_address_scc_id;
private $user_address_scc_id; //SCC ID
private $user_address; //SCC OBJ
private $user_birth_date;
private $user_birth_year;
private $user_first_training;
@@ -217,6 +218,12 @@ class user_kid extends user_parent {
public function get_uk_address_scc_id() {
return $this->user_address_scc_id;
}
public function set_uk_address($_address) {
$this->user_address = $_address;
}
public function get_uk_address() {
return $this->user_address;
}
public function set_uk_beforehand($_beforehand) {
$this->user_beforehand = $_beforehand;
}
@@ -263,6 +270,11 @@ class user_kid extends user_parent {
$school->set_school_data_by_id($value);
$this->set_uk_school($school);
}
if ($field == 'uk_address_scc_id' && !empty($value)) {
$city = new school_city();
$city->set_school_city_data_by_id($value);
$this->set_uk_address($city);
}
//$this->set_ua_type(2); //kid típus beállítása
}
$this->set_login(true);