From 2be66e212c390f9e1bf46235c57f06467b4e9afc Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Wed, 22 Jun 2011 17:22:54 -0400 Subject: [PATCH] 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 --- .../conify/global/cat/authority/control_set_authority_field.tt2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } -- 2.11.0