Fix autosuggest when in no-vis-check mode
authorMike Rylander <mrylander@gmail.com>
Thu, 20 Sep 2012 19:17:36 +0000 (15:17 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 11 Oct 2012 17:17:59 +0000 (13:17 -0400)
commit0a3b116b2292601048a72351330427c694b12f2b
treeac1957bdcbc8baf8c7a5bea6904243b53ffefbbd
parent684c17f38e48c5d774dc0ce2136796c5533590e4
Fix autosuggest when in no-vis-check mode

When autosuggest is configured to avoid visiblity checking, it sends a
special org unit id of -1 to the database as a signal.  However, the stored
procedure is expecting a NULL instead.  This allows either by transforming
-1 to NULL within the stored procedure.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Conflicts:

Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/030.schema.metabib.sql
Open-ILS/src/sql/Pg/upgrade/0740.schema.checkless_browse_fix.sql [new file with mode: 0644]