-
Notifications
You must be signed in to change notification settings - Fork 9
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(bodies): allow empty foundation date. Fixes HELP-1789 #1184
Conversation
@@ -246,6 +252,10 @@ export default { | |||
this.body.founded_at = moment(this.foundationDate).format('YYYY-MM-DD') | |||
}, | |||
saveBody () { | |||
if (['antenna', 'contact antenna', 'contact'].includes(this.body.type) && !this.body.founded_at) { |
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.
@serge1peshcoff this good enough? Or do you also want to check if it's a valid date?
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.
should work good I'd say
## [1.33.1](1.33.0...1.33.1) (2021-10-22) ### Bug Fixes * **bodies:** allow empty foundation date. Fixes HELP-1789 ([#1184](#1184)) ([b5a22f6](b5a22f6))
🎉 This PR is included in version 1.33.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Also fixed two issues with error messages when creating/editing bodies
Core PR for this is AEGEE/core#371