Fix: Allow text input for hour.

This commit is contained in:
Laurent Destailleur 2013-10-30 11:57:32 +01:00
parent 8045f6091f
commit b3a0510407
2 changed files with 4 additions and 4 deletions

View File

@ -3659,7 +3659,7 @@ class Form
* @param string $prefix prefix * @param string $prefix prefix
* @param int $iSecond Default preselected duration (number of seconds) * @param int $iSecond Default preselected duration (number of seconds)
* @param int $disabled Disable the combo box * @param int $disabled Disable the combo box
* @param string $typehour if select then hour in select if text input in text * @param string $typehour if 'select' then input hour is a combo select, if 'text' input is in text
* @return void * @return void
*/ */
function select_duration($prefix,$iSecond='',$disabled=0,$typehour='select') function select_duration($prefix,$iSecond='',$disabled=0,$typehour='select')

View File

@ -494,7 +494,7 @@ function projectLinesb(&$inc, $parent, $lines, &$level, &$projectsrole, &$tasksr
print '<td class="nowrap">'; print '<td class="nowrap">';
$s =$form->select_date('',$lines[$i]->id,'','','',"addtime",1,0,1,$disabledtask); $s =$form->select_date('',$lines[$i]->id,'','','',"addtime",1,0,1,$disabledtask);
$s.='&nbsp;&nbsp;&nbsp;'; $s.='&nbsp;&nbsp;&nbsp;';
$s.=$form->select_duration($lines[$i]->id,'',$disabledtask); $s.=$form->select_duration($lines[$i]->id,'',$disabledtask,'text');
$s.='&nbsp;<input type="submit" class="button"'.($disabledtask?' disabled="disabled"':'').' value="'.$langs->trans("Add").'">'; $s.='&nbsp;<input type="submit" class="button"'.($disabledtask?' disabled="disabled"':'').' value="'.$langs->trans("Add").'">';
print $s; print $s;
print '</td>'; print '</td>';