Fixed bulk actions (return false if no items were selected)

- added missing check for WPUsers segment in case it does not exist
This commit is contained in:
Jonathan Labreuille
2016-05-20 18:20:58 +02:00
parent c4ddb38d18
commit 8c56c8da5e
4 changed files with 42 additions and 26 deletions

View File

@@ -122,10 +122,12 @@ class Model extends \Sudzy\ValidModel {
if(is_callable($callback)) {
$callback($ids);
}
$last_statement = $orm->get_last_statement();
return $last_statement->rowCount();
}
$last_statement = $orm->get_last_statement();
return $last_statement->rowCount();
return false;
}
function duplicate($data = array()) {