Index: branches/RC/core/admin_templates/catalog/advanced_view.tpl =================================================================== diff -u -N -r11623 -r11668 --- branches/RC/core/admin_templates/catalog/advanced_view.tpl (.../advanced_view.tpl) (revision 11623) +++ branches/RC/core/admin_templates/catalog/advanced_view.tpl (.../advanced_view.tpl) (revision 11668) @@ -29,6 +29,9 @@ var $Catalog = new Catalog('', 'advanced_view_', 0); var a_toolbar = new ToolBar(); + + + a_toolbar.AddButton( new ToolBarButton('edit', '', edit) ); a_toolbar.AddButton( new ToolBarButton('delete', '', Index: branches/RC/core/admin_templates/users/image_edit.tpl =================================================================== diff -u -N -r11623 -r11668 --- branches/RC/core/admin_templates/users/image_edit.tpl (.../image_edit.tpl) (revision 11623) +++ branches/RC/core/admin_templates/users/image_edit.tpl (.../image_edit.tpl) (revision 11668) @@ -33,7 +33,7 @@ - + Index: branches/RC/core/admin_templates/catalog_tab.tpl =================================================================== diff -u -N -r11649 -r11668 --- branches/RC/core/admin_templates/catalog_tab.tpl (.../catalog_tab.tpl) (revision 11649) +++ branches/RC/core/admin_templates/catalog_tab.tpl (.../catalog_tab.tpl) (revision 11668) @@ -7,6 +7,9 @@ '', function() { $form_name = $Catalog.queryTabRegistry('prefix', '', 'tab_id') + '_form'; + + set_hidden_field('remove_specials[]', 1); + std_precreate_item('', 'categories/categories_edit'); }, true ) Index: branches/RC/core/admin_templates/submissions/submission_view.tpl =================================================================== diff -u -N -r11623 -r11668 --- branches/RC/core/admin_templates/submissions/submission_view.tpl (.../submission_view.tpl) (revision 11623) +++ branches/RC/core/admin_templates/submissions/submission_view.tpl (.../submission_view.tpl) (revision 11668) @@ -92,7 +92,7 @@
- + Index: branches/RC/core/units/general/helpers/priority_helper.php =================================================================== diff -u -N -r11610 -r11668 --- branches/RC/core/units/general/helpers/priority_helper.php (.../priority_helper.php) (revision 11610) +++ branches/RC/core/units/general/helpers/priority_helper.php (.../priority_helper.php) (revision 11668) @@ -64,15 +64,23 @@ */ function updatePriorities(&$event, $changes, $new_ids, $constrain = '') { + if (!$changes) { + // no changes to process + return Array (); + } + list ($id, $pair) = each($changes); + + if (!$id && !array_key_exists('parent', $pair)) { + // 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'); + $ids = array(); $not_processed = array_keys($changes); - if(!$not_processed || !getArrayValue($not_processed, 0)) { - return $not_processed; - } - $ids = array(); foreach ($changes as $id => $pair) { array_push($ids, $id); $constrain = isset($pair['parent']) ? 'ParentId = '.$pair['parent'].' AND ' : ''; Index: branches/RC/core/admin_templates/reviews/review_direct_edit.tpl =================================================================== diff -u -N -r11623 -r11668 --- branches/RC/core/admin_templates/reviews/review_direct_edit.tpl (.../review_direct_edit.tpl) (revision 11623) +++ branches/RC/core/admin_templates/reviews/review_direct_edit.tpl (.../review_direct_edit.tpl) (revision 11668) @@ -36,7 +36,7 @@ - +