Merge pull request #32616 from rycks/18.0_fix_zero_is_a_value_into_dictionnary

zero could be a value
This commit is contained in:
Laurent Destailleur 2025-02-11 09:07:29 +01:00 committed by GitHub
commit 09df62600e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2004,6 +2004,11 @@ if ($id > 0) {
$canbemodified = 1;
}
if ($tabname[$id] == "c_product_nature" && in_array($obj->code, array(0, 1))) {
$canbedisabled = 0;
$canbemodified = 0;
$iserasable = 0;
}
// Build Url. The table is id=, the id of line is rowid=
$rowidcol = $tabrowid[$id];
// If rowidcol not defined