Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug - Calendar icon is kept active in disabled DateTime control #649

Open
BuilderNSV opened this issue Mar 6, 2025 · 0 comments
Open

Bug - Calendar icon is kept active in disabled DateTime control #649

BuilderNSV opened this issue Mar 6, 2025 · 0 comments

Comments

@BuilderNSV
Copy link
Contributor

Environment

  • Server OS: Linux
  • Browser: Firefox
  • Znuny version: 7.1.1

Expected behavior

All controls are disabled if BuildDateSelection() with argument "Disabled => 1" is called.

Actual behavior

Calendar icon is kept active if BuildDateSelection() function with argument "Disabled => 1" is called and can visually change values of day/month/year. May be it changes nothing but it is certainly confusing.

How to reproduce

Steps to reproduce the behavior:

  1. Make a form with DateTime control or use some existent, for example Kernel\Modules\AgentTicketActionCommon.pm, line 2384
  2. Make or change BuildDateSelection() function to be called with argument "Disabled => 1".
  3. Go to the page with prepared DateTime control and see that all controls are inactive but click on icon shows calendar and new date is visually applied to day/month/year controls

Screenshots

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant