Red Hat Bugzilla – Bug 759994
Editor table stops working after 'Source and Target' search returns no results
Last modified: 2012-01-26 03:22:32 EST
Description of problem:
After a search of source and target textflows has returned no results, any attempt to clear or change the search causes the editor table to remain blank until a different document is loaded.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Load a document with 1 or more text flows
2. Click the search textbox and type a string that is not present in any flows
3. Press Enter so that "There is no data to display" is shown.
4a. Click the X to clear the results
4b. Type another string in the box and press Enter
Loading a document with no content may also cause the same behaviour.
The editor table is blank and no text flows are shown.
The results of the new search are shown, or all textflows if the search was cleared.
Possible workarounds: (a) go back to document list and select a different document, or (b) reload page with F5.
Bug fixed in 1.4. See https://github.com/zanata/zanata/commit/4bf069930b4895cea55d9ac09162d2bbbab0570f
merged to 1.5
VERIFIED with Zanata version 1.4.4-SNAPSHOT (20111206-1747)
yet problem still exist in Zanata version 1.5-SNAPSHOT (20111201-1521)
VERIFIED with Zanata version 1.5-SNAPSHOT (20111209-1504)
REVERIFIED with staging machine Zanata version 1.4.4 (20111211-2301)
RELEASE NOTES TEXT:
Cause: Users may search through a document in the online translation editor for occurrences of a search term. Both original strings and any translations are searched for occurrences of the search term. When a successful match is found, it is highlighted in the translation editor. In the case where no match was found, the editor attempted to highlight a non-existent string.
Consequence: When a search returned no results in the document currently loaded in the translation editor, the translation editor contents would blank out, requiring the page to be reloaded.
Fix: The code was modified so that the translation unit highlighting occurs only when an occurrence of a search term is located in the translation editor. If no occurrences of the search term are located, no highlighting takes place.
Result: Searches with no results no longer cause the translation editor to blank out.