Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

[2011-07-18] TreeSelectorField.js fails when SecurityID is used (fix provided) #325

Closed
silverstripe-issues opened this Issue Apr 3, 2013 · 1 comment

Comments

Projects
None yet
2 participants

created by: EelkeSpaak
created at: 2011-07-18
original ticket: http://open.silverstripe.org/ticket/6682


The helperURLBase() (sapphire/javascript/TreeSelectorField.js line 47-49) function should be changed to:

helperURLBase: function() {
var formAct = this.ownerForm().action;
var ind = formAct.indexOf('?');
if (ind > -1) {
formAct = formAct.substring(0,ind);
}
return formAct + '/field/' + this.inputTag.name + '/';
},

because this.ownerForm().action will sometimes include the query string, leading to bugs.

I can't make a patch file or anything, but I thought I'd mention it.

Contributor

simonwelsh commented Mar 16, 2014

No longer relevant.

@simonwelsh simonwelsh closed this Mar 16, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment