[Rt-commit] r18049 - in rt/3.999/branches/merge_to_3.8.2: .
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Jan 29 09:43:31 EST 2009
Author: sunnavy
Date: Thu Jan 29 09:43:29 2009
New Revision: 18049
Modified:
rt/3.999/branches/merge_to_3.8.2/ (props changed)
rt/3.999/branches/merge_to_3.8.2/share/html/Elements/ListActions
Log:
r19275 at sunnavys-mb: sunnavy | 2009-01-29 22:26:47 +0800
merged share/html/Elements/ListActions
Modified: rt/3.999/branches/merge_to_3.8.2/share/html/Elements/ListActions
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/share/html/Elements/ListActions (original)
+++ rt/3.999/branches/merge_to_3.8.2/share/html/Elements/ListActions Thu Jan 29 09:43:29 2009
@@ -56,11 +56,19 @@
</div>
<%init>
+# backward compatibility, don't use array in new code, but use keyed hash
+if ( ref( $session{'Actions'} ) eq 'ARRAY' ) {
+ unshift @actions, @{ delete $session{'Actions'} };
+}
+
+if ( ref( $session{'Actions'}{''} ) eq 'ARRAY' ) {
+ unshift @actions, @{ delete $session{'Actions'}{''} };
+}
+
my $actions_pointer = $m->request_args->{'results'};
if ($actions_pointer && ref( $session{'Actions'}->{$actions_pointer} ) eq 'ARRAY' ) {
- unshift @actions, @{ $session{'Actions'}->{$actions_pointer} };
- delete $session{'Actions'}->{$actions_pointer};
+ unshift @actions, @{ delete $session{'Actions'}->{$actions_pointer} };
}
# XXX: run callbacks per row really crazy idea
More information about the Rt-commit
mailing list