FIx in imagefield
This commit is contained in:
parent
97375a4039
commit
0fcccb2553
1 changed files with 2 additions and 2 deletions
|
|
@ -63,10 +63,10 @@ class ImageField extends PhangoField {
|
||||||
|
|
||||||
//Check the image for delete.
|
//Check the image for delete.
|
||||||
//This field is used only for a row
|
//This field is used only for a row
|
||||||
old_reset=Webmodel::$model[$this->name_model]->reset_conditions;
|
$old_reset=Webmodel::$model[$this->name_model]->reset_conditions;
|
||||||
Webmodel::$model[$this->name_model]->reset_conditions=0;
|
Webmodel::$model[$this->name_model]->reset_conditions=0;
|
||||||
$old_image=Webmodel::$model[$this->name_model]->select_a_row_where(array($this->name_component), 1)[$this->name_component];
|
$old_image=Webmodel::$model[$this->name_model]->select_a_row_where(array($this->name_component), 1)[$this->name_component];
|
||||||
Webmodel::$model[$this->name_model]->reset_conditions=old_reset;
|
Webmodel::$model[$this->name_model]->reset_conditions=$old_reset;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue