diff --git a/models/Order.php b/models/Order.php index 67dcb13..1aae862 100755 --- a/models/Order.php +++ b/models/Order.php @@ -311,10 +311,9 @@ public function afterSave($insert, $changedAttributes) { -// VarDumper::dump($changedAttributes, 10, true);die(); $data = []; foreach ($changedAttributes as $key => $attribute) { - if ($this->oldAttributes[ $key ] != $attribute) { + if ($this->oldAttributes[ $key ] != $attribute && $key != 'updated_at') { $data[ $key ] = $this->getLogAttributes( $key, [ diff --git a/views/order/_log_item.php b/views/order/_log_item.php index 0c6f978..255a220 100644 --- a/views/order/_log_item.php +++ b/views/order/_log_item.php @@ -5,6 +5,7 @@ */ use artweb\artbox\ecommerce\models\Order; use artweb\artbox\ecommerce\models\OrderLog; + use yii\helpers\Html; use yii\helpers\Json; ?> @@ -16,7 +17,7 @@
=$order->attributeLabels()[$key]?> | -=$item['old']?> | -=$item['new']?> | -