Fix: Allow text input for hour.
This commit is contained in:
parent
8045f6091f
commit
b3a0510407
@ -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')
|
||||||
|
|||||||
@ -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.=' ';
|
$s.=' ';
|
||||||
$s.=$form->select_duration($lines[$i]->id,'',$disabledtask);
|
$s.=$form->select_duration($lines[$i]->id,'',$disabledtask,'text');
|
||||||
$s.=' <input type="submit" class="button"'.($disabledtask?' disabled="disabled"':'').' value="'.$langs->trans("Add").'">';
|
$s.=' <input type="submit" class="button"'.($disabledtask?' disabled="disabled"':'').' value="'.$langs->trans("Add").'">';
|
||||||
print $s;
|
print $s;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user