Only change "modified" counter on successful save
The modified counter in the CMS module (the red box in the sidebar) always changes when saving, even when an error is returned. This fix will only change the "modified" counter in the CMS module on a successful change.
This commit is contained in:
parent
2ddf5c459c
commit
c7537339da
|
|
@ -221,7 +221,7 @@
|
|||
|
||||
updateFormEditorMode($(this).closest('.tab-pane'), false)
|
||||
|
||||
if (context.handler == 'onSave') {
|
||||
if (context.handler == 'onSave' && (!data['X_OCTOBER_ERROR_FIELDS'] && !data['X_OCTOBER_ERROR_MESSAGE'])) {
|
||||
$(this).trigger('unchange.oc.changeMonitor')
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue