fix bug of pargar

This commit is contained in:
2026-07-26 14:15:26 +03:30
parent 667e3736fb
commit 06b3113b98
17 changed files with 561 additions and 26 deletions
@@ -666,6 +666,13 @@ class ProductController extends SuperController
unset($data['inventory']);
}
if (!Product::hasDescriptionColumn()) {
unset($data['description']);
} elseif (array_key_exists('description', $data)) {
$desc = is_string($data['description']) ? trim($data['description']) : '';
$data['description'] = $desc === '' ? null : $desc;
}
if (!Product::hasOverrideTradingHoursColumn()) {
unset($data['override_trading_hours']);
} elseif (array_key_exists('override_trading_hours', $data)) {