Removes duplicate error messages from being displayed during batch action error.
Fixes bug 953583. Change-Id: Ie7a5e0bef12372debb3fa1b3837488b5609b58c8
This commit is contained in:
parent
e206ba6a4c
commit
d0f78679a0
@ -494,9 +494,10 @@ class BatchAction(Action):
|
||||
LOG.info('%s: "%s"' %
|
||||
(self._conjugate(past=True), datum_display))
|
||||
except:
|
||||
action_str = self._conjugate().lower()
|
||||
exceptions.handle(request,
|
||||
_("Unable to %s.") % action_str)
|
||||
# Handle the exception but silence it since we'll display
|
||||
# an aggregate error message later. Otherwise we'd get
|
||||
# multiple error messages displayed to the user.
|
||||
exceptions.handle(request, ignore=True)
|
||||
action_failure.append(datum_display)
|
||||
|
||||
#Begin with success message class, downgrade to info if problems
|
||||
|
Loading…
x
Reference in New Issue
Block a user