Merge pull request #18018 from frederic34/patch-7

export value of checkbox instead id with EXPORT_LABEL_FOR_SELECT
This commit is contained in:
Laurent Destailleur 2021-06-26 12:24:01 +02:00 committed by GitHub
commit 97f5a0e541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,7 @@ if ($resql) { // This can fail when class is used on old database (during mig
case 'boolean':
$typeFilter = "Boolean";
break;
case 'checkbox':
case 'select':
if (!empty($conf->global->EXPORT_LABEL_FOR_SELECT)) {
$tmpparam = unserialize($obj->param); // $tmpparam may be array with 'options' = array(key1=>val1, key2=>val2 ...)