Index: branches/5.2.x/core/units/helpers/priority_helper.php =================================================================== --- branches/5.2.x/core/units/helpers/priority_helper.php +++ branches/5.2.x/core/units/helpers/priority_helper.php @@ -91,13 +91,6 @@ return Array (); } - list ($id, $pair) = each($changes); - - if ( !$id && !isset($pair['constrain']) ) { - // adding new item without constrain -> priority stays the same - return Array ($id); - } - $id_field = $this->Application->getUnitOption($event->Prefix, 'IDField'); $table_name = $this->Application->getUnitOption($event->Prefix, 'TableName'); @@ -245,4 +238,4 @@ $dummy->Update(); } } - } \ No newline at end of file + }