[open-ils-commits] r11544 - trunk/Open-ILS/src/perlmods/OpenILS/Application

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Dec 14 16:29:50 EST 2008


Author: miker
Date: 2008-12-14 16:29:46 -0500 (Sun, 14 Dec 2008)
New Revision: 11544

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm
Log:
split on space now, instead of pipe

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm	2008-12-14 21:19:44 UTC (rev 11543)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/PermaCrud.pm	2008-12-14 21:29:46 UTC (rev 11544)
@@ -124,7 +124,7 @@
     my $perm_field_value = $action_node->getAttribute('permission');
 
     if ($perm_field_value) {
-        my @perms = split '\|', $perm_field_value;
+        my @perms = split ' ', $perm_field_value;
 
         my @context_ous;
         if ($action_node->getAttribute('global_required')) {
@@ -134,7 +134,7 @@
             my $context_field_value = $action_node->getAttribute('context_field');
 
             if ($context_field_value) {
-                push @context_ous, $obj->$_ for ( split '\|', $context_field_value );
+                push @context_ous, $obj->$_ for ( split ' ', $context_field_value );
             } else {  
                 for my $context_node ( $xpc->findnodes( "perm:context", $action_node ) ) {
                     my $context_field = $context_node->getAttribute('field');
@@ -154,7 +154,7 @@
                             push @context_ous, $remote_object->$context_field;
                         }
                     } else {
-                        push @context_ous, $obj->$_ for ( split '\|', $context_field );
+                        push @context_ous, $obj->$_ for ( split ' ', $context_field );
                     }
                 }
             }



More information about the open-ils-commits mailing list