export value of checkbox instead id with EXPORT_LABEL_FOR_SELECT

This commit is contained in:
Frédéric FRANCE 2021-06-24 11:54:05 +02:00 committed by GitHub
parent 2c4fd9e409
commit 47b1d2b7df
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 ...)