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:26 +0000 (13:17 -0400)
commit436fae85993182a81fdd85428949ccc26049ec8e
treea1cff2c8bd007654ff2c22b66656abad5157ab37
parent4e9aaf50a1a7e1655183bcfce1ea00255c172d72
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]