Skip to content

Commit

Permalink
Merge pull request #52 from sunnysideup/patch-1
Browse files Browse the repository at this point in the history
PATCH: add owner for database field
  • Loading branch information
wilr authored Aug 21, 2022
2 parents 5d7a658 + 918ed10 commit 4de1b63
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Extension/BaseElementExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\GridField\GridFieldAddExistingAutocompleter;
use SilverStripe\Forms\GridField\GridFieldAddNewButton;
use SilverStripe\Forms\GridField\GridFieldDeleteAction;
use SilverStripe\Forms\GridField\GridFieldConfig_Base;
use SilverStripe\Forms\GridField\GridFieldDataColumns;
use SilverStripe\Forms\GridField\GridFieldDetailForm;
Expand Down Expand Up @@ -49,7 +50,7 @@ public function populateDefaults()
{
$default = $this->owner->config()->get('default_global_elements');

$this->AvailableGlobally = $default;
$this->owner->AvailableGlobally = $default;
}

/**
Expand Down Expand Up @@ -107,8 +108,6 @@ public function getPublishedVirtualElements()

/**
* @param FieldList $fields
*
* @return FieldList
*/
public function updateCMSFields(FieldList $fields)
{
Expand Down

0 comments on commit 4de1b63

Please sign in to comment.