Skip to content

Commit

Permalink
Update product.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Jun 30, 2024
1 parent 480f9a0 commit 49d68eb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions upload/admin/controller/catalog/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 49d68eb

Please sign in to comment.