Bug 1842 - LiveSearch display issue when you delete the search term
: LiveSearch display issue when you delete the search term
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 6.0.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-19 22:49 UTC by Vidur Apparao
Modified: 2008-09-15 14:37 UTC (History)
0 users

See Also:
Category: ---


Attachments
possible fix (626 bytes, patch)
2005-07-19 23:26 UTC, Vidur Apparao
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vidur Apparao 2005-07-19 22:49:26 UTC
I've seen this in Firefox and IE on Windows:

1) Go to Search Music
2) Type in a search term. The LiveSearch results display below.
3) Delete the search term.

The Search Music HTML displays in the results area recursively.
Comment 1 Vidur Apparao 2005-07-19 23:26:21 UTC
Created attachment 657 [details]
possible fix

Here's a patch that does a couple of things:
1) Doesn't return the search page if the query is the empty string (as opposed
to not specified).
2) Returns the empty string rather than undef if the search string is too
small.

This seems to work well on Firefox (you can delete and retype a search term),
but is flaky on IE. Possibly IE doesn't like the returned empty string and
stops JavaScript execution?
Comment 2 Vidur Apparao 2005-07-20 13:42:31 UTC
Well...after doing a bit more testing, it seems to me that the IE flakiness
existed before. Checked in this fix as change 3757.
Comment 3 Chris Owens 2006-06-16 14:41:23 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.