-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The source of a Dropdown should be fetched before its value is set wh…
…en reading a JASP file Fixes jasp-stats/jasp-test-release#1780 This solves 2 problems: . a dropdown with a source is not set properly when a JASP file is read: if the dropdown was set with a value coming from the source, when reading the JASP file, if the values of the source are not yet read, setting the dropdown generates an error. This is the case in the ANOVA analysis: the 'Reference model for weight ratios' dropdown in the Order Restriction, has for source the titles of the tabs of the Order Restriction models. If the dropdown is set with one of these values, reading a JASP file with this setting will lead to an error. . if an error is set to a control, removing this error lets the analysis is an error state, and the analysis cannot run anymore. In AnalysisForm, the terms of an available model (which is the case for a dropdown) should be fetched before the value of the dropdown is set. Also remove the _getControlErrorMessageOfControl method which is not used anymore. In ControlErrorMessage, when the message is closed, its association with its control should be removed: in this way the AnalysisForm::hasError becomes false.
- Loading branch information
Showing
3 changed files
with
19 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ Rectangle | |
{ | ||
control.hasError = false; | ||
control.hasWarning = false; | ||
control = null; | ||
parent = null; | ||
} | ||
|
||
|