From 994428eb7f65a7ff9966254f3e9731da54b45084 Mon Sep 17 00:00:00 2001 From: objecttothis Date: Wed, 20 Feb 2019 12:06:33 +0400 Subject: [PATCH] Fix bug preventing new Attribute from being anything but GROUP --- application/views/attributes/form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/attributes/form.php b/application/views/attributes/form.php index d55ec9fc5..38842cf36 100644 --- a/application/views/attributes/form.php +++ b/application/views/attributes/form.php @@ -73,7 +73,7 @@ $(document).ready(function() { var definition_type = $("#definition_type option:selected").text(); - if(definition_type == "DATETIME" || definition_type == "GROUP") + if(definition_type == "DATETIME" || (definition_type == "GROUP" && !is_new)) { $('#definition_type').prop("disabled",true); }