mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUG: Subsite save SiteConfig overwrites MainSite SiteConfig (Issue #15)
Implemented the fix mentioned in the bug ticket within the subsites settings extension (use current subsite id)
This commit is contained in:
parent
7965c86120
commit
3ad7ddcfce
@ -38,4 +38,8 @@ class SiteConfigSubsites extends DataExtension {
|
||||
function cacheKeyComponent() {
|
||||
return 'subsite-'.Subsite::currentSubsiteID();
|
||||
}
|
||||
|
||||
function updateCMSFields(FieldList $fields) {
|
||||
$fields->push(new HiddenField('SubsiteID','SubsiteID', Subsite::currentSubsiteID()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user