Fix bug where batch notes weren't saved upon creation

This commit is contained in:
Lance Edgar 2017-05-25 12:20:37 -05:00
parent 522aad5880
commit da0f5cb63c

View file

@ -290,6 +290,7 @@ class BatchMasterView(MasterView):
kwargs['created_by'] = batch.created_by
elif batch.created_by_uuid:
kwargs['created_by_uuid'] = batch.created_by_uuid
kwargs['notes'] = batch.notes
if hasattr(batch, 'filename'):
kwargs['filename'] = batch.filename
return kwargs