[Statistics] (20.0) Re-enable Behavioural Statistics Double Data Entry module #3752
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request addresses the issues raised in Redmine 14744. I believe many are related to some malfunctioning in the Raisinbread test database and are not an issue with the source code. Similarly, some of these issues seem to occur on the test VM but I am not able to reproduce them on my sandbox.
However, major issues existed preventing DDE functionality from working at all.
Details
/instruments/
was added to the Candidate links in the menu statistics site templates, restoring their functionality.Statistics_DD_Site
was overriding its parent's parent's parent's__construct
function resulting in none of the essential NDB_Page things being loaded (such as form, Module, Identifier, etc.)Other bonus changes
There was also no reason for its parent (
Statistics_Site
) to extendNDB_Form
so it now extendsNDB_Menu
as the page is more like a Menu than a Form. This is reflected in the other template files in this module being prefixed withmenu_
rather thanform_
.I also fixed a redundancy in the function
notexlcluded
as well as several PHP warnings which occurred when$key
wasfalse
.getCssDependencies
was removed as it was identical to its parent method and so does not need to be overridden.To test
On branch
20.0-release
Go to the
Statistics
module. Click theBehavioural Statistics Tab
Scroll down until the Double Data Entry section. Click any
View Details
link.Verify you get a 500 error.
Go back and, under DDE, "Click here for breakdown per participant". Another 500 should appear.
Go to the main module page and click Imaging Statistics tab. It should work. If not, tell me.
If you are on an instance with real instruments please check if the candidate links to instruments work. Let me know if they still break. If they work, the problem is Raisinbread and not LORIS.
On my branch