-
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
fix postitions can have gangs from seperate organizations #1636
base: master
Are you sure you want to change the base?
Conversation
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.
Det ligger også gjenger på opptak som ikke er "eid" av organisasjonen som "eier" opptaket.
Det finnes altså f.eks. en side for "Økonomi" i et Samf opptak. Se http://localhost:3000/control-panel/recruitment/1/gang/23
Bare å bytte ut gjeng id (den siste) i URLen. Alle over 17 er ikke Samf gjenger.
Så problemet du løser i denne PR-en burde i tillegg løses på et nivå over hvor du gjør det her.
if self.gang and self.section: | ||
errors['gang'].append(self.ONLY_ONE_OWNER_ERROR) | ||
errors['section'].append(self.ONLY_ONE_OWNER_ERROR) | ||
elif not (self.gang or self.section): | ||
errors['gang'].append(self.NO_OWNER_ERROR) | ||
errors['section'].append(self.NO_OWNER_ERROR) | ||
raise ValidationError(errors) |
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.
Noe av dette blir vel gjort i #1632 også
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.
Yes, vet det
damn nice spotta |
Found a bug where a recruitment can have positions from gangs from other organizations, such as an UKA position in a Samf recruitment
These would not appear in the admin panel