Update Attribute.php

Without this else if the change from text to dropdown fails but no actual query is made since the query to update the attribute type gets made by the save_definition function.
This commit is contained in:
objecttothis authored and GitHub committed 2019-03-14 10:04:46 +04:00
1 parent ce7b13a633
commit 2dca4785e1
1 file changed
+6 -1
+6 -1
View File
@@ -309,6 +309,11 @@ class Attribute extends CI_Model
$this->db->trans_complete();
}
}
else if($to_type === DROPDOWN)
{
$success = TRUE;
}
}
//From DROPDOWN to TEXT
@@ -575,4 +580,4 @@ class Attribute extends CI_Model
return $this->db->update('attribute_definitions', array('deleted' => 1));
}
}
}