Fix bug preventing new Attribute from being anything but GROUP

This commit is contained in:
objecttothis committed 2019-02-20 12:06:33 +04:00
1 parent 20af6120b1
commit 994428eb7f
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}