fix amount 8

This commit is contained in:
2026-06-09 16:44:02 +03:30
parent 918e8b4f76
commit 9f4f0c0145
7 changed files with 317 additions and 2 deletions
@@ -386,6 +386,12 @@ class ProductController extends SuperController
$data['max_order_cash'] = $hasMax ? (int) $max : null;
}
if (!Product::hasShowInAssetsColumn()) {
unset($data['show_in_assets']);
} elseif (array_key_exists('show_in_assets', $data)) {
$data['show_in_assets'] = !empty($data['show_in_assets']);
}
return $data;
}
}