Index: branches/5.1.x/core/units/groups/groups_item.php =================================================================== diff -u -N -r12127 -r12657 --- branches/5.1.x/core/units/groups/groups_item.php (.../groups_item.php) (revision 12127) +++ branches/5.1.x/core/units/groups/groups_item.php (.../groups_item.php) (revision 12657) @@ -1,6 +1,6 @@ Validate()) return false; - $this->SetDBField('ResourceId', $this->Application->NextResourceId()); + class GroupsItem extends kDBItem { - return parent::Create(); - } + function Create($force_id = false, $system_create = false) + { + if (!$this->Validate()) return false; + $this->SetDBField('ResourceId', $this->Application->NextResourceId()); - function Update($id = null, $system_update = false) - { - $this->VirtualFields['ResourceId'] = Array(); - $ret = parent::Update($id, $system_update); - unset($this->VirtualFields['ResourceId']); - - return $ret; - } -} + return parent::Create(); + } -?> \ No newline at end of file + function Update($id = null, $system_update = false) + { + $this->VirtualFields['ResourceId'] = Array(); + $ret = parent::Update($id, $system_update); + unset($this->VirtualFields['ResourceId']); + + return $ret; + } + } \ No newline at end of file