I am one step further:
--- DB_query_builder.php.ORIG 2016-03-21 17:26:30.000000000 +0100
+++ DB_query_builder.php.KMJ 2016-05-02 16:37:01.000000000 +0200
@@ -962,6 +962,10 @@
}
else
{
+ // KMJ BUGFIX 20160502 FIX001
+ // KMJ this one has a bug. if search = "0" , $v becomes NULL
+ // and search is %% which represents all records.
+ // need to look where $v is coming from
$like_statement = "{$prefix} {$k} {$not} LIKE '%{$v}%'";
}
Query part in mysql looks like:
WHERE `uidchecked` LIKE '%%' ESCAPE '!'
and %% for "0" is deadly. :-)
Backtrace, but I am still not lucky to find where "0" is lost against null:
system/database/DB_query_builder.php(852): CI_DB_query_builder->_like(\'uidchecked\', \'\', \'AND \', \'both\', \'\', NULL)
application/models/Grocery_crud_model.php(165): CI_DB_query_builder->like(\'uidchecked\', \'\', \'both\')
application/libraries/Grocery_CRUD.php(501): Grocery_crud_model->like(\'uidchecked\', \'\', \'both\')
assets/grocery_crud/themes/bootstrap/views/list.php(11): grocery_CRUD_Model_Driver->get_total_results()
application/libraries/Grocery_CRUD.php(2916): include(\'/usr/local/www/...\')
application/libraries/Grocery_CRUD.php(1611): grocery_CRUD_Layout->_theme_view(\'list.php\', Object(stdClass))
application/libraries/Grocery_CRUD.php(4578): grocery_CRUD_Layout->showList(true)
application/controllers/Ctserp.php(1291): Grocery_CRUD->render()
[internal function]: Erp->mgmt_partner(\'ajax_list\')
system/core/CodeIgniter.php(514): call_user_func_array(Array, Array)
index.php(315): require_once(\'/usr/local/www/...\')
Anybody?