X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=time.php;h=d8889110ac444049079da30eda949bb0498bdf3d;hb=b0e8ffd3af439b5dc6dd5044a46a906d9833932b;hp=768a809da1ce0127dc013457da5bc5d44aaf30ef;hpb=bd68d5a0dc9aad9854df9220538bd0c0db7d6ea0;p=timetracker.git diff --git a/time.php b/time.php index 768a809d..d8889110 100644 --- a/time.php +++ b/time.php @@ -195,6 +195,8 @@ if (!$user->canManageTeam() && defined('READONLY_START_FINISH') && isTrue(READON } if ((TYPE_DURATION == $user->record_type) || (TYPE_ALL == $user->record_type)) $form->addInput(array('type'=>'text','name'=>'duration','value'=>$cl_duration,'onchange'=>"formDisable('duration');")); +if (!defined('NOTE_INPUT_HEIGHT')) + define('NOTE_INPUT_HEIGHT', 40); $form->addInput(array('type'=>'textarea','name'=>'note','style'=>'width: 600px; height:'.NOTE_INPUT_HEIGHT.'px;','value'=>$cl_note)); $form->addInput(array('type'=>'calendar','name'=>'date','value'=>$cl_date)); // calendar if ($user->isPluginEnabled('iv')) @@ -229,9 +231,6 @@ if ($request->isPost()) { if (MODE_PROJECTS == $user->tracking_mode || MODE_PROJECTS_AND_TASKS == $user->tracking_mode) { if (!$cl_project) $err->add($i18n->getKey('error.project')); } - if (MODE_PROJECTS_AND_TASKS == $user->tracking_mode) { - if (!$cl_task) $err->add($i18n->getKey('error.task')); - } if (strlen($cl_duration) == 0) { if ($cl_start || $cl_finish) { if (!ttTimeHelper::isValidTime($cl_start))