Skip to content

Commit

Permalink
FIX : Select Dolusers
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-irvine committed Jan 14, 2025
1 parent 2133f07 commit 5ccc133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/hrm/class/position.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,8 @@ public function showInputField($val, $key, $value, $moreparam = '', $keysuffix =
if ($key == 'fk_user') {
$vacantId = $keyprefix.$key.'vacant'.$keysuffix;

$out = $form->select_dolusers($value, 'search_'.$key, 1, null, 0, '', '', '0', 0, 0, '', 0, '', (!empty($val['css']) ? $val['css'] : 'maxwidth100'));
$action = GETPOST('action', 'alpha');
$out = $form->select_dolusers($value, ($action == 'create' ? $key : 'search_'.$key), 1, null, 0, '', '', '0', 0, 0, '', 0, '', (!empty($val['css']) ? $val['css'] : 'maxwidth100'));

$out .= '<label class="nowrap position-fk-user classfortooltip" title="'.dol_escape_js($langs->trans('VacantCheckboxHelper')).'"><input type="checkbox" id="'.$vacantId.'" name="'.$vacantId.'">&nbsp;'.$langs->trans("Vacant").'</label>'; ?>
<script type="text/javascript">
Expand Down

0 comments on commit 5ccc133

Please sign in to comment.