From 0d044399e524c07057053a2274513f045db2629b Mon Sep 17 00:00:00 2001 From: Suresh Krishnan Date: Sat, 16 Jul 2016 12:35:22 +0000 Subject: [PATCH] Fixed validation of submitter name and email when they are same as the holder's info. Fixes issue #1971. Commit ready for merge. - Legacy-Id: 11668 --- ietf/ipr/models.py | 4 ++-- ietf/templates/ipr/details_edit.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ietf/ipr/models.py b/ietf/ipr/models.py index 355bb6dec..564a5124b 100644 --- a/ietf/ipr/models.py +++ b/ietf/ipr/models.py @@ -20,8 +20,8 @@ class IprDisclosureBase(models.Model): other_designations = models.CharField("Designations for other contributions", blank=True, max_length=255) rel = models.ManyToManyField('self', through='RelatedIpr', symmetrical=False) state = models.ForeignKey(IprDisclosureStateName) - submitter_name = models.CharField(max_length=255) - submitter_email = models.EmailField() + submitter_name = models.CharField(max_length=255,blank=True) + submitter_email = models.EmailField(blank=True) time = models.DateTimeField(auto_now_add=True) title = models.CharField(blank=True, max_length=255) diff --git a/ietf/templates/ipr/details_edit.html b/ietf/templates/ipr/details_edit.html index 44db5423f..255018f6e 100644 --- a/ietf/templates/ipr/details_edit.html +++ b/ietf/templates/ipr/details_edit.html @@ -226,7 +226,7 @@ {% endif %} -

{% cycle section %}. Contact information of submitter of this form if different from the contact information above

+

{% cycle section %}. Contact information of submitter of this form

{% bootstrap_field form.same_as_ii_above layout='horizontal' %} {% bootstrap_field form.submitter_name layout='horizontal' %}