Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
AccountedTime is always required in AgentTicketBulk, if the field is shown because 'Defined-or' is used to set the value for TimeUnitsRequired while Ticket::Frontend::NeedAccountedTime is set to 0.
Because of this, the value for TimeUnitsRequired in JavaScript is set to '0' instead of 0 or ''. This value is evaluated for truth to decide if this is a required field and a non-empty-string is true. Using 'Logical-or' fixes the issue
Breaking change
Additional information
Checklist
[x] The code change is tested and works locally.(❗)
[x] There is no commented out code in this PR.(❕)
[ ] You improved or added new unit tests.(❕)
[x] Local ZnunyCodePolicy run passes successfully.(❕)
Proposed change
AccountedTime is always required in AgentTicketBulk, if the field is shown because 'Defined-or' is used to set the value for
TimeUnitsRequired
whileTicket::Frontend::NeedAccountedTime
is set to0
. Because of this, the value forTimeUnitsRequired
in JavaScript is set to'0'
instead of0
or''
. This value is evaluated for truth to decide if this is a required field and a non-empty-string is true. Using 'Logical-or' fixes the issueBreaking change
Additional information
Checklist