Bug 895881

Summary: 'Restore Defaults' in editor options does not properly restore defaults
Product: [Retired] Zanata Reporter: David Mason <damason>
Component: Component-UIAssignee: Alex Eng <aeng>
Status: CLOSED CURRENTRELEASE QA Contact: Ding-Yi Chen <dchen>
Severity: low Docs Contact:
Priority: medium    
Version: 2.1CC: dchen, mkim, zanata-bugs
Target Milestone: ---Keywords: screened
Target Release: 3.7   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: 3.7.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-3294) Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 02:19:37 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:

Description David Mason 2013-01-16 08:21:19 UTC
Description of problem:
'Restore Defaults' button in editor options works properly for some options, but not for others. CodeMirror Editor and Page Size options appear to be restored to default but the restored settings are not applied. Spell Check and Optional Trans Unit Details options are not affected by Restore Defaults.

Version-Release number of selected component (if applicable):
2.1 (release candidate)

How reproducible:

Steps to Reproduce:
1.Open editor with any document that has more than 5 text flows
2.Change all editor options from their default state, setting page size to 5.
3.Click 'Restore Defaults'
Actual results:
Page size option shows 25, but only 5 entries are shown in the editor table, codemirror editor option is not checked but codemirror editor is still shown, spell check and optional trans unit detail options are not in their default state. All other options are in their default state.

Expected results:
All options are in their default state and the options are applied in the editor.

Additional info:

Comment 1 Damian Jansen 2014-07-28 01:28:55 UTC
Tested 3.5.0-SNAPSHOT (git-server-3.4.2-201-ge0afdde), still an issue

Comment 2 Alex Eng 2015-04-15 21:32:54 UTC
Pull request:

Comment 3 Ding-Yi Chen 2015-04-22 04:36:48 UTC
VERIFIED with Zanata 3.7.0-SNAPSHOT (git-jenkins-zanata-server-github-pull-requests-3294)