Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Instrument list] Populate the timepoint tpl_data for modules #3797

Conversation

xlecours
Copy link
Contributor

This fix the missing timepoint data in the candidate profile table of the instrument_list module

The ModuleRouteur is now in charge of adding candidate and timepoint objects to the request.

see: RM#

@xlecours xlecours added Category: Bug PR or issue that aims to report or fix a bug [branch] major labels Jul 10, 2018
@xlecours xlecours added this to the 20.0.0 milestone Jul 10, 2018
@xlecours xlecours changed the title populate the timepoint tpl_data for modules [Instrument list] Populate the timepoint tpl_data for modules Jul 10, 2018
'TimePoint',
\TimePoint::singleton($gets['sessionID'])
);
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this belong in the module router? Shouldn't it be up to the individual pages/modules whether or not they want to populate these in the request that gets passed to the middleware?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like that #3799 ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I haven't tested it but that looks better to me. (I don't really think those "magic" panels should be in the page decoration middleware at all, it's a relic from main.php. At the minimum they should be a separate middleware that modules need to explicitly add.)

@xlecours
Copy link
Contributor Author

Modules need to add the atributes themselves for the candidate profile panel to show data

@xlecours xlecours closed this Jul 10, 2018
@xlecours xlecours deleted the fix_instrument_list_candidate_profile_table branch August 4, 2021 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Bug PR or issue that aims to report or fix a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants