znuny / Znuny

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.
https://www.znuny.org
GNU General Public License v3.0
358 stars 85 forks source link

Fixed time units always mandatory in AgentTicketBulk #290

Closed tipue-dev closed 2 years ago

tipue-dev commented 2 years ago

Proposed change

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