Skip to content

Commit

Permalink
Evarisk#584 [TimespentRange] fix: remove name of input to not send us…
Browse files Browse the repository at this point in the history
…eless input in post
  • Loading branch information
evarisk-kilyan committed Oct 24, 2024
1 parent 9131873 commit f745e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dolisirh_timespent.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ function task_lines_within_range(int &$inc, int $timestampStart, int $timestampE

$tableCell .= '<div class="modal-open">';
$tableCell .= '<input hidden class="modal-options" data-modal-to-open="timespent" data-from-id="' . $lines[$i]->id . '" data-from-module="dolisirh">';
$tableCell .= '<input type="text" alt="' . ($disabledTaskDay ? '' : $altTitle) . '" title="' . ($disabledTaskDay ? '' : $altTitle) . '" ' . ($disabledTaskDay ? 'disabled' : '') . ' class="center smallpadd timespent" size="2" id="timeadded[' . $inc . '][' . $idw.']" name="task[' . $lines[$i]->id . '][' . $idw . ']" data-task-id=' . $lines[$i]->id . ' data-timestamp=' . $dayInLoop . ' data-date="' . dol_print_date($dayInLoop, '%a') . ' - ' . dol_print_date($dayInLoop, 'dayreduceformat') . '" data-cell=' . $idw . ' value="" cols="2" maxlength="5">';
$tableCell .= '<input type="text" alt="' . ($disabledTaskDay ? '' : $altTitle) . '" title="' . ($disabledTaskDay ? '' : $altTitle) . '" ' . ($disabledTaskDay ? 'disabled' : '') . ' class="center smallpadd timespent" size="2" id="timeadded[' . $inc . '][' . $idw.']" data-task-id=' . $lines[$i]->id . ' data-timestamp=' . $dayInLoop . ' data-date="' . dol_print_date($dayInLoop, '%a') . ' - ' . dol_print_date($dayInLoop, 'dayreduceformat') . '" data-cell=' . $idw . ' value="" cols="2" maxlength="5">';
$tableCell .= '</div></td>';
print $tableCell;
}
Expand Down

0 comments on commit f745e38

Please sign in to comment.