Redo the quickfix to the "Send and Post" button bug (mentioned in
issue #1308) so that we still do the validation correctly, but just always show the button (even if it's unusable) - Legacy-Id: 7416
This commit is contained in:
parent
bb029db147
commit
649618626e
|
@ -310,8 +310,6 @@ class IncomingLiaisonForm(LiaisonForm):
|
|||
self.fields['organization'].choices = self.hm.get_all_incoming_entities()
|
||||
|
||||
def get_post_only(self):
|
||||
# Temporary fix - newer django plumbs when forms are validated differently - fail permissive for now
|
||||
return False
|
||||
from_entity = self.get_from_entity()
|
||||
if is_secretariat(self.user) or Role.objects.filter(person=self.person, group=from_entity.obj, name="auth"):
|
||||
return False
|
||||
|
|
|
@ -44,9 +44,7 @@
|
|||
{% if form.edit %}
|
||||
<input type="submit" value="Save" name="save" />
|
||||
{% else %}
|
||||
{% if not form.get_post_only %}
|
||||
<input type="submit" value="Send and Post" name="send" />
|
||||
{% endif %}
|
||||
<input type="submit" value="Post Only" name="post_only" />
|
||||
{% endif %}
|
||||
<div id="cancel-dialog" style="display: none;" title="Cancel {% if form.edit %}editing liaison{% else %}adding new liaison{% endif %}">
|
||||
|
|
Loading…
Reference in a new issue