rolling back recent change ... miscommunication on how i18n_core is used
[Evergreen.git] / Open-ILS / src / sql / Pg / 002.functions.config.sql
index 998274b..42935aa 100644 (file)
@@ -78,7 +78,7 @@ BEGIN
     -- Try the full locale
     SELECT  * INTO result
       FROM  config.i18n_core
-      WHERE (fq_field = keyfield OR fq_field = keytable)
+      WHERE fq_field = keyfield
             AND identity_value = keyvalue
             AND translation = locale;
 
@@ -86,7 +86,7 @@ BEGIN
     IF NOT FOUND THEN
         SELECT  * INTO result
           FROM  config.i18n_core
-          WHERE (fq_field = keyfield OR fq_field = keytable)
+          WHERE fq_field = keyfield
                 AND identity_value = keyvalue
                 AND translation = language;
     END IF;