From 9c007b13d511cfae07684e3ec93954139b488b94 Mon Sep 17 00:00:00 2001
From: Carsten  Rose <carsten.rose@math.uzh.ch>
Date: Mon, 27 Mar 2017 22:36:29 +0200
Subject: [PATCH] Corrected error message to use 'itemList' instead of
 'itemValues'. Renamed constant too.

---
 extension/qfq/qfq/AbstractBuildForm.php | 2 +-
 extension/qfq/qfq/Constants.php         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extension/qfq/qfq/AbstractBuildForm.php b/extension/qfq/qfq/AbstractBuildForm.php
index f8dab1a67..a526044dc 100644
--- a/extension/qfq/qfq/AbstractBuildForm.php
+++ b/extension/qfq/qfq/AbstractBuildForm.php
@@ -1254,7 +1254,7 @@ abstract class AbstractBuildForm {
         } elseif ($fieldType === 'enum' || $fieldType === 'set') {
             // already done at the beginning with '$this->getItemsForEnumOrSet($formElement['name'], $fieldType);'
         } else {
-            throw new UserFormException("Missing definition (- nothing found in 'sql1', 'parameter:itemValues', 'enum-' or 'set-definition'", ERROR_MISSING_ITEM_VALUES);
+            throw new UserFormException("Missing definition (- nothing found in 'sql1', 'parameter:itemList', 'enum-' or 'set-definition'", ERROR_MISSING_ITEM_LIST);
         }
 
         if (count($itemKey) === 0) {
diff --git a/extension/qfq/qfq/Constants.php b/extension/qfq/qfq/Constants.php
index 5bbc27cda..f9c975d33 100644
--- a/extension/qfq/qfq/Constants.php
+++ b/extension/qfq/qfq/Constants.php
@@ -122,7 +122,7 @@ const ERROR_RECURSION_TOO_DEEP = 1023;
 const ERROR_CHECKBOXMODE_UNKNOWN = 1024;
 const ERROR_MISSING_SQL1 = 1025;
 const ERROR_CHECKBOX_EQUAL = 1026;
-const ERROR_MISSING_ITEM_VALUES = 1027;
+const ERROR_MISSING_ITEM_LIST = 1027;
 const ERROR_UNKNOWN_FORM_RENDER = 1028;
 const ERROR_NAME_LABEL_EMPTY = 1029;
 const ERROR_DEBUG = 1031;
-- 
GitLab