From 8c173540e68740795b6a982fe8fa10db900d2f5d Mon Sep 17 00:00:00 2001 From: objecttothis <17935339+objecttothis@users.noreply.github.com> Date: Tue, 9 Jul 2019 18:05:23 +0400 Subject: [PATCH] Update Attribute.php changed DATETIME to DATE since constant name was changed but it wasn't changed here. --- application/models/Attribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Attribute.php b/application/models/Attribute.php index ff244cb88..719d99b0d 100644 --- a/application/models/Attribute.php +++ b/application/models/Attribute.php @@ -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)) {