mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
BUGFIX call SubsiteID rather then ID so Subsites doesn't call a page with same ID incorrectly
This commit is contained in:
parent
1dcd84e098
commit
0531c868e1
@ -26,7 +26,7 @@ class LeftAndMainSubsites extends Extension {
|
||||
|
||||
|
||||
public function changesubsite() {
|
||||
$id = $_REQUEST['ID'];
|
||||
$id = $_REQUEST['SubsiteID'];
|
||||
|
||||
Subsite::changeSubsite($id);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Behaviour.register({
|
||||
'#SubsiteActions select' : {
|
||||
onchange: function() {
|
||||
var request = new Ajax.Request(SiteTreeHandlers.controller_url + '/changesubsite?ID=' + this.value + '&ajax=1', {
|
||||
var request = new Ajax.Request(SiteTreeHandlers.controller_url + '/changesubsite?SubsiteID=' + this.value + '&ajax=1', {
|
||||
onSuccess: function(response) {
|
||||
$('sitetree').innerHTML = response.responseText;
|
||||
SiteTree.applyTo($('sitetree'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user