Skip to content

Commit

Permalink
fix bug: admin order not save tracking_num
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Oct 17, 2018
1 parent 894b95d commit 2aa2070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/appadmin/modules/Sales/block/orderinfo/Manageredit.php
Expand Up @@ -101,7 +101,7 @@ public function save(){
$orderModel = Yii::$service->order->getByPrimaryKey($order_id);
if(is_array($editForm) && $orderModel['order_id']){
foreach($editForm as $k => $v){
if (property_exists($orderModel, $k)) {
if ($orderModel->hasAttribute($k)) {

This comment has been minimized.

Copy link
@successgo

successgo Oct 17, 2018

Contributor

Nice!

$orderModel[$k] = $v;
}
}
Expand Down

0 comments on commit 2aa2070

Please sign in to comment.