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:
Ole Laursen 2014-03-05 17:39:13 +00:00
parent bb029db147
commit 649618626e
2 changed files with 0 additions and 4 deletions

View file

@ -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

View file

@ -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 %}">