From 2e67007c69877c5ce47d93d508f89af260f269d3 Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 15 Nov 2018 21:54:35 +0100 Subject: [PATCH] Fix attributes submit error (#2201) --- application/views/attributes/form.php | 2 +- bower.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/attributes/form.php b/application/views/attributes/form.php index d41655c31..8cda67c92 100644 --- a/application/views/attributes/form.php +++ b/application/views/attributes/form.php @@ -104,7 +104,7 @@ $(document).ready(function() { var is_event = typeof(value) !== 'string'; - if (!$('#attribute_form').valid()) + if ($("#definition_value").val().match(/(\||:)/g) != null) { return; } diff --git a/bower.json b/bower.json index e6ab56739..d38b6e401 100644 --- a/bower.json +++ b/bower.json @@ -25,7 +25,7 @@ ], "dependencies": { "jquery-form": "~4.2.2", - "jquery-validate": "~1.14.0", + "jquery-validate": "~1.17.0", "jquery": "~2.1.4", "jquery-ui": "~1.11.4", "bootstrap3-dialog": "https://github.com/nakupanda/bootstrap3-dialog.git#master",