|
|
@@ -1430,11 +1430,6 @@ class TableAcl extends Core_AclBase {
|
|
|
} else if (!is_array($itemTodo)) {
|
|
|
throw new HttpException('Item is not array', 400);
|
|
|
}
|
|
|
- if (empty($itemTodo)) {
|
|
|
- //throw new Exception('Item patch is empty');
|
|
|
- DBG::_('DBG_DS', '>2', "Item patch is empty", null, __CLASS__, __FUNCTION__, __LINE__);
|
|
|
- return 0;// nothing to insert
|
|
|
- }
|
|
|
$ds = $this->getDataSource();
|
|
|
|
|
|
// from convertObjectFromUserInput
|
|
|
@@ -1454,9 +1449,7 @@ class TableAcl extends Core_AclBase {
|
|
|
$item[$vFieldName] = $value;
|
|
|
}
|
|
|
}
|
|
|
- if (empty($item)) {
|
|
|
- throw new Exception("Nothing to add");
|
|
|
- }
|
|
|
+ // add empty record is allowed - empty($item)
|
|
|
|
|
|
{// add DefaultAclGroup if no create perms ('C')
|
|
|
$defaultAclGroup = User::getDefaultAclGroup();
|