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

fix: updating condition to not show empty session in user section #7465

Merged
merged 1 commit into from
Nov 25, 2020
Merged

fix: updating condition to not show empty session in user section #7465

merged 1 commit into from
Nov 25, 2020

Conversation

maze-runnar
Copy link
Contributor

…hout email

Fixes fossasia/open-event-frontend#5342

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

@auto-label auto-label bot added the fix label Nov 25, 2020
@iamareebjamal iamareebjamal changed the title fix: updating condition to not show empty session in user section wit… fix: updating condition to not show empty session in user section Nov 25, 2020
@@ -190,7 +190,7 @@ def before_update_object(self, speaker, data, view_kwargs):
'Organizer access required to override email',
)
if (
data.get('is_email_overridden')
not data.get('is_email_overridden')
Copy link
Member

Choose a reason for hiding this comment

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

When did this happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if email is overriden then there will be no email so email is null m but here are condition that is saying that if email is overriden and email is null then set it to user mail, while it should be, while email is not overriden and email is null set it to user mail

Copy link
Member

Choose a reason for hiding this comment

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

@maze-runnar You changed this but didn't make email optional in schema

This is causing fossasia/open-event-frontend#5841

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@maze-runnar You changed this but didn't make email optional in schema

This is causing fossasia/open-event-frontend#5841

@iamareebjamal that is related to PR #7469, and I have made email optional but still showing that error.

@iamareebjamal iamareebjamal merged commit 8a49010 into fossasia:development Nov 25, 2020
@maze-runnar maze-runnar deleted the patch-3 branch November 25, 2020 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Organizer: Adding speaker without email results in sessions added to "my sessions" from organizer him/herself
2 participants