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
368 stars 86 forks source link

Bug - Not required DateTime dynamic field with limitation of date in past blocks note submitting #596

Open BuilderNSV opened 2 weeks ago

BuilderNSV commented 2 weeks ago

Environment

Expected behavior

Note for ticket should be submitted if not required DateTime dynamic field with limitation 'Prevent entry of dates in the past' was not touched on the form

Actual behavior

DateTime dynamic field with limitation 'Prevent entry of dates in the past' raises error 'Invalid date (need a future date)!' even mark for field activation is not set

How to reproduce

Steps to reproduce the behavior:

  1. Create a dynamic field (Object type=Ticket, Field Type= Date/Time, Restrict entering of dates='Prevent entry of dates in the past')
  2. Link this dynamic field with AgentTicketNote screen as not required $Self->{'Ticket::Frontend::AgentTicketNote'}->{'DynamicField'} = { 'Test' => '1' };
  3. Create a New Phone Ticket
  4. Go to Communication -> Note in the created ticket.
  5. Fill Subject/Body but don't touch dynamic field and don't activate it with mark (checkbox).
  6. Try to submit form and see error 'Invalid date (need a future date)!' on dynamic field.

Screenshots

error

rkaldung commented 2 weeks ago

Internal issue 966