[open-ils-commits] r10376 - trunk/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 20 00:27:56 EDT 2008
Author: dbs
Date: 2008-08-20 00:27:53 -0400 (Wed, 20 Aug 2008)
New Revision: 10376
Modified:
trunk/Open-ILS/src/sql/Pg/002.functions.config.sql
Log:
Enable retrieval of translated values based on table name
Modified: trunk/Open-ILS/src/sql/Pg/002.functions.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.functions.config.sql 2008-08-20 03:47:55 UTC (rev 10375)
+++ trunk/Open-ILS/src/sql/Pg/002.functions.config.sql 2008-08-20 04:27:53 UTC (rev 10376)
@@ -78,7 +78,7 @@
-- Try the full locale
SELECT * INTO result
FROM config.i18n_core
- WHERE fq_field = keyfield
+ WHERE (fq_field = keyfield OR fq_field = keytable)
AND identity_value = keyvalue
AND translation = locale;
@@ -86,7 +86,7 @@
IF NOT FOUND THEN
SELECT * INTO result
FROM config.i18n_core
- WHERE fq_field = keyfield
+ WHERE (fq_field = keyfield OR fq_field = keytable)
AND identity_value = keyvalue
AND translation = language;
END IF;
More information about the open-ils-commits
mailing list