fixed change price error

(cherry picked from commit 1f43d04cb8)
pull/36/head
A1Gard 1 year ago
parent 40cc0a0061
commit e8234d01fe

@ -10,7 +10,7 @@ class ProductObserver
// //
public function updated(Product $product){ public function updated(Product $product){
\Log::info('product update'); \Log::info('product update');
if ($product->wasChanged('price') && $p->price != null){ if ($product->wasChanged('price')){
\Log::info('product price update'); \Log::info('product price update');
$p = new Price(); $p = new Price();
$p->product_id = $product->id; $p->product_id = $product->id;

Loading…
Cancel
Save