X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/cdd2e058776a3d0dc9b6f32a2d5d33e4f9388491..9dab021e08d44f730564686bd9ef7856c7a3b4a0:/mobile/timer.php diff --git a/mobile/timer.php b/mobile/timer.php index a8f708a8..d814637f 100644 --- a/mobile/timer.php +++ b/mobile/timer.php @@ -173,7 +173,7 @@ if ($custom_fields && $custom_fields->fields[0]) { $form->addInput(array('type'=>'combobox','name'=>'cf_1', 'style'=>'width: 250px;', 'value'=>$cl_cf_1, - 'data'=>$custom_fields->options, + 'data'=>CustomFields::getOptions($custom_fields->fields[0]['id']), 'empty'=>array(''=>$i18n->get('dropdown.select')) )); } @@ -186,7 +186,7 @@ if ($request->isPost()) { $cl_finish = null; // Validate user input. - if ($user->isPluginEnabled('cl') && $user->isPluginEnabled('cm') && !$cl_client) + if ($user->isPluginEnabled('cl') && $user->isOptionEnabled('client_required') && !$cl_client) $err->add($i18n->get('error.client')); if ($custom_fields) { if (!ttValidString($cl_cf_1, !$custom_fields->fields[0]['required'])) $err->add($i18n->get('error.field'), $custom_fields->fields[0]['label']);