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

NS Country doesn't populate with existing value when updating profile #14

Open
danbjoseph opened this issue Mar 20, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@danbjoseph
Copy link
Collaborator

"National Society County" doesn't populate with existing value when updating profile. It's already set in my profile but showing as blank when I go to update my profile.
Screen Shot 2023-03-20 at 9 20 16 AM

@JonathanGarro
Copy link
Owner

thanks dan. this is a known issue i haven't been able to resolve. storing the latest on this here for whenever i have the bandwidth to revisit:

the UpdateAccountForm class, which inherits from FlaskForm, uses a QuerySelectField with a lambda function to query the db for all national society names. when loading the profile edit page (or any other page that makes use QuerySelectField plus a lambda function), it doesn't show that as being selected. i suspect i need a conditional that checks for the data differently on page preview than page update.

@JonathanGarro JonathanGarro self-assigned this Mar 20, 2023
@JonathanGarro JonathanGarro added the bug Something isn't working label Mar 20, 2023
@nanometrenat
Copy link

I however have multiple NS/org affiliations - so I actually want to be able to select the NS (or IFRC) that relates to a given deployment... Similarly, even if people have one org for a period of time they may change at a later date - so need to make sure that the affiliation that related to past deployments doesn't change when the person later changes jobs. Can think of a few SIMS members in this latter category, who have changed jobs/orgs in the time I've been in SIMS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants