From 2dca4785e16c10257cc1723b024f2445ed4f73a9 Mon Sep 17 00:00:00 2001 From: objecttothis <17935339+objecttothis@users.noreply.github.com> Date: Thu, 14 Mar 2019 10:04:46 +0400 Subject: [PATCH] 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. --- application/models/Attribute.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/models/Attribute.php b/application/models/Attribute.php index d34c725f7..27d574a2a 100644 --- a/application/models/Attribute.php +++ b/application/models/Attribute.php @@ -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)); } -} \ No newline at end of file +}