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
355 stars 85 forks source link

Bug - Search does not take entered values when executed by pressing enter button instead of clicking "search" #586

Open arminarmin opened 1 month ago

arminarmin commented 1 month ago

Environment

Expected behavior

  1. I want to search for a ticket by providing the ticket-number.
  2. I click on the lens-icon in the top bar.
  3. I enter the ticket-number in the filter field "Ticket#".
  4. I press enter.
  5. The Znuny System opens the ticket.

Actual behavior

  1. I want to search for a ticket by providing the ticket-number.
  2. I click on the lens-icon in the top bar.
  3. I enter the ticket-number in the filter field "Ticket#".
  4. I press enter.
  5. The Znuny System opens an overview of a number of tickets. It seems that the entered value in the field "Ticket#" is not transferred.

How to reproduce

  1. Click on the "lens-icon" in the top bar.
  2. Enter a valid ticket-number in the filter-field "ticket#".
  3. Press enter on keyboard to execute the search-query.

Additional information

When you click on the "search"-button instead it works as expected.

hanneshal commented 1 month ago

Hi @arminarmin,

we are talking about the toolbar icon, not the toolbar instant search, correct?

grafik

Some additional information for the dev to fix this: This (submit on enter) works fine when the fulltext field is still in the view. If the field is removed, "enter to submit" functions are no longer working.

Second info: Toolbar Search works fine, c&p the ticket number, hit enter, bingo.

Regards

arminarmin commented 1 month ago

Hey, thx alot for the quick reply!

Yes, we are talking about the toolbar-icon (1)

I did a quick test right now with the toolbar instant search (2):

  1. Enter a valid ticket number into the field
  2. Press enter on keyboad to submit the search-query
  3. Same result, it doesnt show the exact ticket, it shows a number of tickets.

Regards :)

hanneshal commented 1 month ago

@arminarmin we try. But I can not reproduce this behaviour. Either you have a prefix in front of the actual number or there are more tickets which match (articles, notes..) to this number.

Monosnap screencast 2024-08-14 16-28-10

Also please note: this issue is related to the missing submit action and my information were just some notes for the devs. Nothing else should be discussed here, otherwise we wont get anyhting done. ;)

Regards Johannes