Fix selection of first entry into select
This commit is contained in:
parent
b3cb037abb
commit
befe58ab98
@ -269,7 +269,7 @@ class FormProjets
|
||||
* @param int $discard_closed Discard closed projects (0=Keep,1=hide completely,2=Disable)
|
||||
* @param int $forcefocus Force focus on field (works with javascript only)
|
||||
* @param int $disabled Disabled
|
||||
* @return int Nber of project if OK, <0 if KO
|
||||
* @return int Nbr of project if OK, <0 if KO
|
||||
*/
|
||||
function selectTasks($socid=-1, $selected='', $htmlname='taskid', $maxlength=24, $option_only=0, $show_empty=1, $discard_closed=0, $forcefocus=0, $disabled=0)
|
||||
{
|
||||
|
||||
@ -379,7 +379,7 @@ print '<input type="hidden" name="month" value="'.$month.'">';
|
||||
print '<input type="hidden" name="day" value="'.$day.'">';
|
||||
print $langs->trans("AssignTaskToMe").'<br>';
|
||||
$formproject->selectTasks($socid?$socid:-1, $taskid, 'taskid', 32, 0, 1, 1);
|
||||
print $formcompany->selectTypeContact($object, '', 'type','internal','rowid', 1);
|
||||
print $formcompany->selectTypeContact($object, '', 'type','internal','rowid', 0);
|
||||
print '<input type="submit" class="button" name="submit" value="'.$langs->trans("AssignTask").'">';
|
||||
print '</form>';
|
||||
|
||||
|
||||
@ -388,7 +388,7 @@ print '<input type="hidden" name="month" value="'.$month.'">';
|
||||
print '<input type="hidden" name="day" value="'.$day.'">';
|
||||
print $langs->trans("AssignTaskToMe").'<br>';
|
||||
$formproject->selectTasks($socid?$socid:-1, $taskid, 'taskid', 32, 0, 1, 1);
|
||||
print $formcompany->selectTypeContact($object, '', 'type','internal','rowid', 1);
|
||||
print $formcompany->selectTypeContact($object, '', 'type','internal','rowid', 0);
|
||||
print '<input type="submit" class="button" name="submit" value="'.$langs->trans("AssignTask").'">';
|
||||
print '</form>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user