Merged in [11668] from suresh.krishnan@ericsson.com:

Fixed validation of submitter name and email when they are same as the holder's info. Fixes issue #1971.
 - Legacy-Id: 11692
Note: SVN reference [11668] has been migrated to Git commit 0d044399e5
This commit is contained in:
Henrik Levkowetz 2016-07-17 11:04:44 +00:00
commit 0ad9a90da8
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -226,7 +226,7 @@
{% endif %}
<h2>{% cycle section %}. Contact information of submitter of this form <small>if different from the contact information above</small></h2>
<h2>{% cycle section %}. Contact information of submitter of this form</h2>
{% bootstrap_field form.same_as_ii_above layout='horizontal' %}
{% bootstrap_field form.submitter_name layout='horizontal' %}