-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] side_panel: cf rule range bugs
Steps to reproduce :- Bug 1 : - Change the range to "" - Focus out => selection input should have a red border even without clicking on confirm Bug 2 : - Enter "" as range and save - Now change it to a valid range and confirm => red border and error message do not disappear even if you confirm Bug 3 : - Enter an invalid range (eg. A2:B3:C3) and save - Now change it to a valid range and confirm => red border disappears but the error message does not disappear Bug 4 : - Enter an invalid range (with invalid sheet name) => red border appears (correct), but there is no error message and you can still save the cf rule With this commit, the following amendments have been made: Earlier, the condition checked to display selection input border in red considered 'empty range' as a valid input. That condition is changed to consider it as an invalid range. The condition to check for invalid ranges, while dispatching command result 'InvalidRange', is altered to use the getter `isRangeValid` so that cf rules with ranges containing invalid sheet name cannot be saved. To ensure that the error message appears if and only if the input is invalid (i.e. it disappears on entering a valid range as input, even without clicking on confirm or save), error messages for invalid range are now handled from the `onRangesChanged` method instead of `saveConditionalFormat` method. Task ID : 3651293 closes #3446 X-original-commit: 4a956f3 Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
- Loading branch information
Showing
5 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters