From 49d68ebfbf49107b542baf18acbf8a111f5a493e Mon Sep 17 00:00:00 2001 From: Daniel Kerr Date: Mon, 1 Jul 2024 01:42:14 +0800 Subject: [PATCH] Update product.php --- upload/admin/controller/catalog/product.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/upload/admin/controller/catalog/product.php b/upload/admin/controller/catalog/product.php index 77acb6dddf5..fc1052eb501 100644 --- a/upload/admin/controller/catalog/product.php +++ b/upload/admin/controller/catalog/product.php @@ -768,7 +768,7 @@ public function form(): void { } if (!empty($product_info)) { - $data['date_available'] = ($product_info['date_available'] != '0000-00-00') ? date('Y-m-d', strtotime($product_info['date_available'])) : ''; + $data['date_available'] = ($product_info['date_available'] != '0000-00-00') ? $product_info['date_available'] : ''; } else { $data['date_available'] = date('Y-m-d'); } @@ -1029,10 +1029,6 @@ public function form(): void { } } - - - - $data['product_options'][] = [ 'product_option_id' => $product_option['product_option_id'], 'product_option_value' => $product_option_value_data,