Description of problem: Unsaved indicator only works for first time. After saving a message, altering its content again will not compare it with latest saved content but the content when first loaded. Version-Release number of selected component (if applicable): 2.0 How reproducible: Always Steps to Reproduce: 1. Go to translation editor 2. Find a message with translation, for example "foo" 3. Save as fuzzy 4. Change content from "foo" to "bar" (editor should indicate unsaved content) 5. Change content back from "bar" to "foo" Actual results: Unsaved indicator is still on Expected results: Unsaved indicator should be off since we have changed content back to latest saved value. Additional info:
Correction of Steps to reproduce: 1. Go to translation editor 2. Find a message with translation, for example "foo" 3. Change it to "bar" and save as fuzzy 4. Change content from "bar" to "bar 1" (editor should indicate unsaved content) 5. Change content back from "bar 1" to "bar" Also note: If at any time press ESC to cancel edit, after that unsaved indicator will not function any more
committed into master and release: https://github.com/zanata/zanata/commit/cd34f87e5d39804821b76274e69ec81951c6d4b8
VERIFIED with Zanata version 2.0.3-SNAPSHOT (20121127-0017) and Zanata version 2.1-SNAPSHOT (20121127-1134)