mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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
This commit is contained in:
parent
89bf063880
commit
f51448ced4
@ -99,8 +99,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
var data = {selector: this.data('targetPanel'),pjax: this.data('pjax')}, url;
|
var data = {selector: this.data('targetPanel'),pjax: this.data('pjax')}, url;
|
||||||
if(parentID) {
|
if(parentId) {
|
||||||
url = $.path.addSearchParams(ss.i18n.sprintf(this.data('urlAddpage'), parentId), this.data('extraParams'));
|
extraParams = this.data('extraParams') ? this.data('extraParams') : '';
|
||||||
|
url = $.path.addSearchParams(ss.i18n.sprintf(this.data('urlAddpage'), parentId), extraParams);
|
||||||
} else {
|
} else {
|
||||||
url = this.attr('href');
|
url = this.attr('href');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user