Merge "modify the wrong list name of schedule_unit to interval_uint Closes-Bug: #1744625"

This commit is contained in:
Zuul 2018-01-23 16:57:23 +00:00 committed by Gerrit Code Review
commit 6fbbac5ba7
1 changed files with 3 additions and 3 deletions

View File

@ -161,13 +161,13 @@ class InfoConfigurationAction(workflows.Action):
if (cleaned_data.get('schedule_start_date') and
cleaned_data.get('schedule_end_date')) and\
not cleaned_data.get('schedule_unit'):
not cleaned_data.get('interval_uint'):
msg = _("Please provide this value.")
self._errors['schedule_unit'] = self.error_class([msg])
self._errors['interval_uint'] = self.error_class([msg])
if (cleaned_data.get('schedule_end_date') and
not cleaned_data.get('schedule_start_date')) and\
not cleaned_data.get('schedule_unit'):
not cleaned_data.get('interval_uint'):
msg = _("Please provide this value.")
self._errors['schedule_start_date'] = self.error_class([msg])