Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions templates/question_type_administration.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

{% if not is_ajax_reload %}
<script>
import(GLPI_PLUGINS_PATH.fields + "/js/modules/QuestionField.js").then((m) => {
import(CFG_GLPI.root_doc + GLPI_PLUGINS_PATH.fields + "/js/modules/QuestionField.js").then((m) => {
const questionField = new m.GlpiPluginFieldsQuestionTypeField();

{% if question is not null %}
Expand All @@ -94,7 +94,7 @@
</script>
{% else %}
<script>
import(GLPI_PLUGINS_PATH.fields + "/js/modules/QuestionField.js").then((m) => {
import(CFG_GLPI.root_doc + GLPI_PLUGINS_PATH.fields + "/js/modules/QuestionField.js").then((m) => {
const questionField = new m.GlpiPluginFieldsQuestionTypeField();
questionField.lockMandatoryInput(
$('[data-glpi-form-editor-question-type-fields-field-id-selector="{{ rand }}"]').closest('[data-glpi-form-editor-question-details]'),
Expand Down