Forward-port r17024: include null fields, via .toStoreItem(), when creating a permiss...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 23 Jul 2010 17:21:24 +0000 (17:21 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 23 Jul 2010 17:21:24 +0000 (17:21 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17027 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/conify/global/permission/grp_tree.html

index bdb535a..6950484 100644 (file)
                                                                                err = true;
                                                                        },
                                     oncomplete : function (r,list) {
-                                                                       group_store.newItem( list[0].toHash(), { parent : current_group, attribute : 'children' } );
+                                                                       group_store.newItem( list[0].toStoreItem(), { parent : current_group, attribute : 'children' } );
                                     }
                                 });
 
                                                                            },
                                                                            oncomplete : function (r, list) {
                
-                                                                               var new_item_hash = list[0].toHash();
+                                                                               var new_item_hash = list[0].toStoreItem();
                                                                                perm_map_store.newItem( new_item_hash );
                                                                                status_update( pgt_strings.SUCCESS_NEW_PERM_MAP );
                                                                                highlighter.group_tree.green.play();