Backport r19013 from trunk
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 17 Dec 2010 19:27:31 +0000 (19:27 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 17 Dec 2010 19:27:31 +0000 (19:27 +0000)
commitd88d64c5f34206193834ee56fb93987a27da879c
tree6175dfc56150c6b5e99c110403fa56011fe20f26
parent84f164ccbac460db6fff94d2a0ba5d4e4b1125a1
Backport r19013 from trunk

Thanks to Sally Fortin for drawing attention to this bug, wherein new
Holding Subfields can't be created in this interface via the staff client.

Acq: Tracked down a small but subtle bug with the Holding Subfield tab of
the Provider editor interface.

We apparently have a global variable "name" defined somewhere which, when
assigned in place of an overrideWidget for an AutoGrid thanks to some vestigial
code, ultimately causes an error from within AutoFieldWidget, if you're using
the staff client.  That's because name is the string "browser_browser" in the
staff client, but if you access this interface from Firefox, name is apparently
set to some value that evaluates to false in a boolean context, because
AutoFieldWidget doesn't choke on it (the comparison at line 182 of that file
will return false).

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@19014 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/web/js/ui/default/conify/global/acq/provider.js