BUGFIX call SubsiteID rather then ID so Subsites doesn't call a page with same ID incorrectly

This commit is contained in:
Michael Andrewartha 2009-05-06 02:41:16 +00:00
parent 1dcd84e098
commit 0531c868e1
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class LeftAndMainSubsites extends Extension {
public function changesubsite() {
$id = $_REQUEST['ID'];
$id = $_REQUEST['SubsiteID'];
Subsite::changeSubsite($id);

View File

@ -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'));