From 9ef2c67cd236a98503ebb6f0b3303304275f4822 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Mon, 13 Apr 2026 15:41:59 +0200 Subject: [PATCH] Fix: path --- hook.php | 2 +- templates/question_type_administration.html.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hook.php b/hook.php index 3ecb3780..d55222fd 100644 --- a/hook.php +++ b/hook.php @@ -377,7 +377,7 @@ function plugin_fields_addWhere($link, $nott, $itemtype, $ID, $val, $searchtype) $link .= ' NOT '; } - return $link . 'CAST(' . $DB->quoteName($table . '_' . $field) . '.' . $DB->quoteName($field) . ' AS DECIMAL(10,7))' . $operator . ' ' . $DB->quoteValue($val) ; + return $link . ' CAST(' . $DB->quoteName($table . '_' . $field) . '.' . $DB->quoteName($field) . ' AS DECIMAL(10,7))' . $operator . ' ' . $DB->quoteValue($val); } else { // if 'number' field with name is found with <= or >= or < or > search // update WHERE clause with the correct operator diff --git a/templates/question_type_administration.html.twig b/templates/question_type_administration.html.twig index 576fcc92..47ceaf16 100644 --- a/templates/question_type_administration.html.twig +++ b/templates/question_type_administration.html.twig @@ -77,7 +77,7 @@ {% if not is_ajax_reload %} {% else %}