http://helpdesk.silverstripe.com/tickets/904 - Fixed oriwave-specific code in subsites module

This commit is contained in:
Sam Minnee 2008-09-16 23:49:05 +00:00
parent 42f55daeef
commit 93ee453b66

View File

@ -81,7 +81,7 @@ class SiteTreeSubsites extends DataObjectDecorator {
foreach(self::$template_fields as $field) {
if(isset($changed[$field]) && $changed[$field]) {
$this->owner->CustomContent = true;
FormResponse::add("$('Form_EditForm_CustomContent').checked = true;");
FormResponse::add("if($('Form_EditForm_CustomContent')) $('Form_EditForm_CustomContent').checked = true;");
break;
}
}