Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

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

remove warning when cloning with new form elements
  • Loading branch information
lukeyeager committed May 16, 2016
2 parents f8c87de + 1be8645 commit 1fb8e82
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 1fb8e82

Please sign in to comment.