-
Notifications
You must be signed in to change notification settings - Fork 1
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
Mothership displays correct user title/honorary if updated on the front-end. #89
base: develop
Are you sure you want to change the base?
Conversation
dd552b1
to
5cd108d
Compare
// prefix, if available. for example, if the mothership locale is `en_GB`, we load | ||
// the collection of titles for `en` | ||
$locale = explode("_", $this->_container['locale']->getId())[0]; | ||
$titles = $this->_container['cfg']->titles->{$locale}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The values are they keys of the array in Symfony form select boxes, so we need to do something like array_combine($titles, $titles) to align the keys with the values, so that it aligns with the database
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, scratch that, reverse it. We should call the title.list
service here
* | ||
* @param UserEvent $event | ||
*/ | ||
public function cleanupSession(UserEvent $event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop this bracket
Closes #88.