From 1be864540d8365f748326815f84ebf151775c6b6 Mon Sep 17 00:00:00 2001 From: Joe Mancewicz Date: Mon, 16 May 2016 14:15:31 -0700 Subject: [PATCH] remove warning when cloning with new form elements --- digits/utils/forms.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/digits/utils/forms.py b/digits/utils/forms.py index a386945fe..e88b56fd9 100644 --- a/digits/utils/forms.py +++ b/digits/utils/forms.py @@ -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