mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-18 14:48:42 -05:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user