Index: branches/unlabeled/unlabeled-1.1.2/kernel/units/general/helpers/clipboard_helper.php =================================================================== diff -u -r5609 -r5718 --- branches/unlabeled/unlabeled-1.1.2/kernel/units/general/helpers/clipboard_helper.php (.../clipboard_helper.php) (revision 5609) +++ branches/unlabeled/unlabeled-1.1.2/kernel/units/general/helpers/clipboard_helper.php (.../clipboard_helper.php) (revision 5718) @@ -1,7 +1,7 @@ getObject(); - + $clipboard = $this->Application->RecallVar('clipboard'); $clipboard = $clipboard ? unserialize($clipboard) : Array(); - + $prefix = $event->getPrefixSpecial(); - + // 1. add $ids to mode key for prefix (make sure the unique) $this_mode_ids =& $clipboard[$prefix][$mode]; if (!is_array($this_mode_ids)) { @@ -26,7 +26,7 @@ else { $this_mode_ids = array_unique( array_merge($this_mode_ids, $ids) ); } - + // 2. remove that ids from all other modes $other_mode_ids =& $clipboard[$prefix][$mode == 'cut' ? 'copy' : 'cut']; if (!is_array($other_mode_ids)) { @@ -35,9 +35,9 @@ else { $other_mode_ids = array_diff($other_mode_ids, $this_mode_ids); } - + $this->Application->StoreVar('clipboard', serialize($clipboard)); - + /*// do not go up - STAY $event->SetRedirectParam('opener', 's'); $event->SetRedirectParam('pass_events', true);*/