Browse files

fix new resource reload on tpl change after validation err

  • Loading branch information...
1 parent edf71cb commit 7793e2f4b43c15d4b73148533d19f674cbab613a @netProphET netProphET committed Dec 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 manager/assets/modext/core/modx.component.js
View
2 manager/assets/modext/core/modx.component.js
@@ -328,7 +328,7 @@ Ext.extend(MODx.toolbar.ActionButtons,Ext.Toolbar,{
/* if Continue Editing, then don't reload the page - just hide the Progress bar
unless the user is on a 'Create' page...if so, then redirect
to the proper Edit page */
- if ((itm.process === 'create' || itm.process === 'duplicate' || itm.reload) && res.object.id !== null) {
+ if ((itm.process === 'create' || itm.process === 'duplicate' || itm.reload) && res.object.id && res.object.id !== null) {
itm.params.id = res.object.id;
if (MODx.request.parent) { itm.params.parent = MODx.request.parent; }
if (MODx.request.context_key) { itm.params.context_key = MODx.request.context_key; }

0 comments on commit 7793e2f

Please sign in to comment.