Merge pull request #364 from eReuse/bugfix/3843-after-action-go-to

after do action from all device go to all device view
This commit is contained in:
cayop 2022-09-27 10:25:40 +02:00 committed by GitHub
commit 187abd550d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -654,6 +654,8 @@ class NewActionView(View):
if lot_id: if lot_id:
return url_for('inventory.lotdevicelist', lot_id=lot_id) return url_for('inventory.lotdevicelist', lot_id=lot_id)
if url_for('inventory.alldevicelist') in (request.referrer or ''):
return url_for('inventory.alldevicelist')
return url_for('inventory.devicelist') return url_for('inventory.devicelist')