X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=reports.php;h=aa492061a4ea06310478508a64f5816effbf0e07;hb=19b674dca67d52e7ec2ea49046f31e68fc6facf4;hp=fe545b2117d899607f9864c9dcf6911c71fc0294;hpb=066efce7ef712710e229308b6099f5af410aecb8;p=timetracker.git diff --git a/reports.php b/reports.php index fe545b21..aa492061 100644 --- a/reports.php +++ b/reports.php @@ -58,7 +58,7 @@ if ($user->isPluginEnabled('cf')) { $showCustomFieldCheckbox = $custom_fields->fields[0]; $showCustomFieldDropdown = $custom_fields->fields[0] && $custom_fields->fields[0]['type'] == CustomFields::TYPE_DROPDOWN; if ($showCustomFieldDropdown) - $showCustomFieldDropdown &= count($custom_fields->options) > 0; + $showCustomFieldDropdown &= CustomFields::getOptions($custom_fields->fields[0]['id']); } $form = new Form('reportForm'); @@ -102,7 +102,7 @@ if ($showCustomFieldDropdown) { $form->addInput(array('type'=>'combobox','name'=>'option', 'style'=>'width: 250px;', 'value'=>$cl_cf_1, - 'data'=>$custom_fields->options, + 'data'=>CustomFields::getOptions($custom_fields->fields[0]['id']), 'empty'=>array(''=>$i18n->get('dropdown.all')))); }