LoggerInterface::error()
has unexpected side-effects in admin
#1634
Labels
LoggerInterface::error()
has unexpected side-effects in admin
#1634
Found while fixing silverstripe/silverstripe-framework#11034
If you log an error while saving a record, even though the record is successfully saved, the toast message turns red (as though it was a failure), and the form doesn't reload.
The toast message is unaffected - it's still the success message. The record still gets saved. The problem is specifically that the wrong type of toast is used, and the form doesn't reload.
Notes
.errorhandler
service affects it, but probably notwarning()
instead oferror()
does not exhibit this buggy behaviour. It is specifically when logging an error that this occurs.The text was updated successfully, but these errors were encountered: