mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-28 10:58:55 -04:00
Update Attribute.php
Without this else, TEXT->DROPDOWN fails. It just returns a simple success because no database changes are needed other than changing the definition_type which is not done here. This would also cause all other conversions not listed to automatically succeed, but we don't need to worry because those are restricted in the view to only ones that are actually supported.
This commit is contained in:
@@ -303,6 +303,12 @@ class Attribute extends CI_Model
|
||||
$this->db->trans_complete();
|
||||
}
|
||||
|
||||
//Any other allowed conversion does not get checked here
|
||||
else
|
||||
{
|
||||
$success = TRUE;
|
||||
}
|
||||
|
||||
return $success;
|
||||
}
|
||||
|
||||
@@ -542,4 +548,4 @@ class Attribute extends CI_Model
|
||||
|
||||
return $this->db->update('attribute_definitions', array('deleted' => 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user