Bug 1000886

Summary: Search and Replace on source says "Replaced x with y" when nothing was done
Product: [Retired] Zanata Reporter: Damian Jansen <djansen>
Component: Component-LogicAssignee: zanata-dev-internal <zanata-dev-internal>
Status: CLOSED WORKSFORME QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.0CC: damason, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-24 03:45:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Damian Jansen 2013-08-26 03:50:42 UTC
Description of problem:
Performing a project-wide search and replace where source documents are the only matches shows "[13:19:20] Replaced "word" with "replaceword" in <number> text flows.  Curiously, inspection of these source-target pairs shows the user has created an "untranslated version".

Version-Release number of selected component (if applicable):
3.0

How reproducible:
Moderate, consistent

Steps to Reproduce:
1. Go to any project translation editor
2. Click on the magnifying glass
3. Enter a word into the Search input that exists in the project
4. Click the select all checkbox
5. Enter some word into the Replace input
6. Press Replace

Actual results:
After a few seconds, the logs indicate the words were replaced.

Expected results:
It should indicate no words were replaced.

Additional info:

Comment 1 David Mason 2013-08-26 05:20:50 UTC
This may also cause the use to create a new revision on matches that were translated but did not contain the matching word in the translation, or when the replacement term is the same as the search term. These scenarios should be considered when addressing this bug.

Comment 2 Damian Jansen 2014-07-24 03:45:28 UTC
Changed at some point, the message "No replacements to make" is displayed.