Skip to content

Commit

Permalink
[conflict_resolver/candidate_profile] Fix loading of conflict widget
Browse files Browse the repository at this point in the history
The conflict resolver wasn't being compiled, causing the candidate
profile of any candidate with conflicts to not load. This fixes
the issue so that the page now loads.

Resolves #8568
  • Loading branch information
driusan committed Apr 5, 2023
1 parent 983a0cf commit cce41fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Middleware/ExceptionHandlingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function process(
) : ResponseInterface {
// Catch PHP Fatal errors that aren't exceptions such as type errors
// or out of memory errors
return $handler->handle($request);
register_shutdown_function(
function () {
$error = error_get_last();
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const lorisModules = {
'ConsentWidget',
],
configuration: ['CohortRelations', 'configuration_helper'],
conflict_resolver: ['conflict_resolver'],
conflict_resolver: ['conflict_resolver', 'CandidateConflictsWidget'],
battery_manager: ['batteryManagerIndex'],
bvl_feedback: ['react.behavioural_feedback_panel'],
behavioural_qc: ['behaviouralQCIndex'],
Expand Down

0 comments on commit cce41fa

Please sign in to comment.