Re-added support for restoreAfterError and mtype to editRow