Skip to content

Commit

Permalink
Debug v21
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 30, 2025
1 parent 249047c commit effe49e
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 92 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ function initCheckForSelect(mode, name, cssclass) /* mode is 0 during init of pa

console.log("initCheckForSelect mode="+mode+" name="+name+" cssclass="+cssclass+" atleastoneselected="+atleastoneselected);

if (atleastoneselected || ' . $alwaysvisible . ')
if (atleastoneselected || ' . ((int) $alwaysvisible) . ')
{
jQuery("."+name).show();
' . ($selected ? 'if (atleastoneselected) { jQuery("."+name+"select").val("' . $selected . '").trigger(\'change\'); jQuery("."+name+"confirmed").prop(\'disabled\', false); }' : '') . '
Expand Down
2 changes: 1 addition & 1 deletion htdocs/hrm/class/position.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ public function getKanbanView($option = '', $arraydata = null)
$return .= '</span>';
$return .= '<div class="info-box-content">';
$return .= '<span class="info-box-ref inline-block tdoverflowmax150 valignmiddle">'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl(1) : $this->ref).'</span>';
$return .= '<input class="fright" id="cb'.$this->id.'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$this->id.'"'.($selected ? ' checked="checked"' : '').'>';
$return .= '<input id="cb'.$this->id.'" class="flat checkforselect fright" type="checkbox" name="toselect[]" value="'.$this->id.'"'.($selected ? ' checked="checked"' : '').'>';
if (!empty($arraydata['user'])) {
$return .= '<br><span class="info-box-label ">'.$arraydata['user'].'</span>';
}
Expand Down
Loading

0 comments on commit effe49e

Please sign in to comment.