From: Lebbeous Fogle-Weekley Date: Wed, 22 Jun 2011 21:22:54 +0000 (-0400) Subject: Fix minor glitch when trying to create new authority fields X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2be66e212c390f9e1bf46235c57f06467b4e9afc;p=contrib%2FConifer.git Fix minor glitch when trying to create new authority fields The Autogrid can handle empty arrays as values for acsaf.bib_fields and acsaf.axis_maps, but can't handle undefined. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_authority_field.tt2 b/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_authority_field.tt2 index 2f60bcc13a..ed260df70d 100644 --- a/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_authority_field.tt2 +++ b/Open-ILS/web/templates/default/conify/global/cat/authority/control_set_authority_field.tt2 @@ -117,7 +117,12 @@ {"create": control_set.id()}; } - acsaf_grid.onPostCreate = function(o) { acsaf_cache[o.id()] = o; }; + acsaf_grid.onPostCreate = function(o) { + o.bib_fields([]); + o.axis_maps([]); + acsaf_cache[o.id()] = o; + }; + acsaf_grid.dataLoader = acsaf_grid_loader; acsaf_grid_loader(); }