Update Attribute.php

changed DATETIME to DATE since constant name was changed but it wasn't changed here.
This commit is contained in:
objecttothis
2019-07-09 18:05:23 +04:00
committed by GitHub
parent 9297e73b69
commit 8c173540e6

View File

@@ -305,7 +305,7 @@ class Attribute extends CI_Model
{
if($to_type === DATE || $to_type === DECIMAL)
{
$field = ($to_type === DATETIME ? 'attribute_date' : 'attribute_decimal');
$field = ($to_type === DATE ? 'attribute_date' : 'attribute_decimal');
if($this->check_data_validity($definition_id, $from_type, $to_type))
{