Fixes for the new behaviour and set forms methods
This commit is contained in:
parent
f75ac6d78d
commit
9f35b00fed
7 changed files with 150 additions and 15 deletions
|
|
@ -30,7 +30,9 @@ function element_exists_method_class($class, $idrow, $field_search='')
|
|||
|
||||
settype($idrow, 'integer');
|
||||
|
||||
$num_elements=$class->select_count('where '.$field_search.'=\''.$idrow.'\'', $class->idmodel);
|
||||
$class->set_conditions('where '.$field_search.'=\''.$idrow.'\'');
|
||||
|
||||
$num_elements=$class->select_count($class->idmodel);
|
||||
|
||||
return $num_elements;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue