Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur
2024-02-25 23:49:57 +01:00
17 changed files with 370 additions and 130 deletions

View File

@@ -7236,6 +7236,9 @@ function yn($yesno, $case = 1, $color = 0)
if ($case == 3) {
$result = '<input type="checkbox" value="1" checked disabled> '.$result;
}
if ($case == 4) {
$result = img_picto('check', 'check');
}
$classname = 'ok';
} elseif ($yesno == 0 || strtolower($yesno) == 'no' || strtolower($yesno) == 'false') {
@@ -7249,6 +7252,9 @@ function yn($yesno, $case = 1, $color = 0)
if ($case == 3) {
$result = '<input type="checkbox" value="0" disabled> '.$result;
}
if ($case == 4) {
$result = img_picto('uncheck', 'uncheck');
}
if ($color == 2) {
$classname = 'ok';