wesley 6 years ago
parent
commit
cf447c8d01
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/ProductScheduleModel.php

+ 1 - 1
app/Models/ProductScheduleModel.php

@@ -46,7 +46,7 @@ class ProductScheduleModel extends BaseModel
     ];
     ];
 
 
     public function store(){
     public function store(){
-        return (new StoreInfoModel())->find($this->store_id)->name;
+        return (new StoreInfoModel())->find($this->store_id)?(new StoreInfoModel())->find($this->store_id)->name:$this->store_id;
     }
     }
 
 
 }
 }