Fixes for the new behaviour and set forms methods

This commit is contained in:
Antonio de la Rosa 2015-08-22 05:48:21 +02:00
parent f75ac6d78d
commit 9f35b00fed
7 changed files with 150 additions and 15 deletions

View file

@ -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;