Fixes
This commit is contained in:
parent
599f1b6871
commit
a03dff0f7f
1 changed files with 4 additions and 3 deletions
|
|
@ -420,7 +420,8 @@ class Webmodel {
|
||||||
|
|
||||||
unset($this->components[$this->idmodel]);
|
unset($this->components[$this->idmodel]);
|
||||||
$this->idmodel=$name_id;
|
$this->idmodel=$name_id;
|
||||||
$this->components[$this->idmodel]=new PrimaryField();
|
//$this->components[$this->idmodel]=new PrimaryField();
|
||||||
|
$this->register($this->idmodel, 'PrimaryField', array());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -721,7 +722,7 @@ class Webmodel {
|
||||||
foreach($arr_extra_model as $key => $my_field)
|
foreach($arr_extra_model as $key => $my_field)
|
||||||
{
|
{
|
||||||
|
|
||||||
$model_name_related=$this->components[$my_field]->related_model;
|
$model_name_related=$this->components[$my_field]->related_model->name;
|
||||||
|
|
||||||
//Set the value for the component foreignkeyfield if name_field_to_field is set.
|
//Set the value for the component foreignkeyfield if name_field_to_field is set.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue