Fix bug, break for loop when we can

This commit is contained in:
Lance Edgar 2016-10-12 15:03:10 -05:00
parent e57757d44b
commit e153390c15

View file

@ -59,6 +59,7 @@ class ScheduleView(TimeSheetView):
uuid = key[len('{}-'.format(field)):] uuid = key[len('{}-'.format(field)):]
if uuid: if uuid:
data[field][uuid] = self.request.POST[key] data[field][uuid] = self.request.POST[key]
break
# if no fields, don't apply changes (filter form uses POST also) # if no fields, don't apply changes (filter form uses POST also)
if any(data.itervalues()): if any(data.itervalues()):