Skip to content

Commit

Permalink
Merge pull request NVIDIA#746 from jmancewicz/remove-clone-warning-fo…
Browse files Browse the repository at this point in the history
…r-new-forms

remove warning when cloning with new form elements
  • Loading branch information
lukeyeager committed May 16, 2016
2 parents bcc53cf + b246cc4 commit 86a8d9d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions digits/utils/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,9 @@ def set_data(job, form, key, value):
return False

## function to pass to iterate_over_form to get data from job
## Don't warn if key is not in job.form_data
def get_data(job, form, key, value):
if key not in job.form_data:
add_warning(form, 'Unable to recover data form source Job.')
return True
else:
if key in job.form_data.keys():
form.data = job.form_data[key]
return False

Expand Down

0 comments on commit 86a8d9d

Please sign in to comment.