fixed change price error

pull/28/head
A1Gard 1 year ago
parent 40cc0a0061
commit 1f43d04cb8

@ -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