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

Mothership displays correct user title/honorary if updated on the front-end. #89

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

adamyeats
Copy link

Closes #88.

// 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};
Copy link
Contributor

@thomasjthomasj thomasjthomasj Jan 27, 2016

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

Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Drop this bracket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants