#11515 fixed validation of the SLA limit field in reports

This commit is contained in:
Jorge Rincon 2023-06-08 17:11:56 +02:00
parent 1ab646a725
commit 63d69dddea

View File

@ -4139,7 +4139,7 @@ function print_SLA_list($width, $action, $idItem=null)
</th> </th>
<th class="header sla_list_sla_limit_col" scope="col"> <th class="header sla_list_sla_limit_col" scope="col">
<?php <?php
echo __('SLA Limit (%)'); echo __('SLA Limit (%)').ui_print_help_tip(__('Enter possible range of values in SLA.'), true);
?> ?>
</th> </th>
<th class="header sla_list_action_col" scope="col"> <th class="header sla_list_action_col" scope="col">
@ -4544,7 +4544,7 @@ function print_SLA_list($width, $action, $idItem=null)
<input name="sla_max" id="text-sla_max" size="10" maxlength="10" type="text"> <input name="sla_max" id="text-sla_max" size="10" maxlength="10" type="text">
</td> </td>
<td class="sla_list_sla_limit_col"> <td class="sla_list_sla_limit_col">
<input name="sla_limit" id="text-sla_limit" size="10" maxlength="10" type="text"> <input name="sla_limit" id="text-sla_limit" size="10" maxlength="10" type="text" required>
</td> </td>
<td class="sla_list_action_col center"> <td class="sla_list_action_col center">
<a href="javascript: addSLARow();"> <a href="javascript: addSLARow();">
@ -5846,7 +5846,7 @@ function addSLARow() {
if ((((idAgent != '') && (idAgent > 0)) if ((((idAgent != '') && (idAgent > 0))
&& ((idModule != '') && (idModule > 0))) && ((idModule != '') && (idModule > 0)))
|| serviceId != null) && (slaLimit != '') || serviceId != null)
{ {
if (nameAgent != '') { if (nameAgent != '') {
//Truncate nameAgent //Truncate nameAgent