Skip to content
Browse files

FIX 'Add new' page button missing ParentID

Slight typo causing this. Also slightly amended how extra URL
parameters are tagged on to prevent &undefined being appended to URL
  • Loading branch information...
1 parent 89bf063 commit f51448ced4fd566a5b81f0b063eb1559ab054d11 @kinglozzer kinglozzer committed May 14, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 javascript/CMSMain.AddForm.js
View
5 javascript/CMSMain.AddForm.js
@@ -99,8 +99,9 @@
}
var data = {selector: this.data('targetPanel'),pjax: this.data('pjax')}, url;
- if(parentID) {
- url = $.path.addSearchParams(ss.i18n.sprintf(this.data('urlAddpage'), parentId), this.data('extraParams'));
+ if(parentId) {
+ extraParams = this.data('extraParams') ? this.data('extraParams') : '';
+ url = $.path.addSearchParams(ss.i18n.sprintf(this.data('urlAddpage'), parentId), extraParams);
} else {
url = this.attr('href');
}

0 comments on commit f51448c

Please sign in to comment.
Something went wrong with that request. Please try again.