Skip to content

Commit

Permalink
bugfix - add VersionedDataObjectDetailsForm to grid field (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish authored Apr 25, 2019
1 parent cd6a430 commit c0240f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/FlexSlider.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public function updateCMSFields(FieldList $fields)
$config->removeComponentsByType('GridFieldAddExistingAutocompleter');
$config->removeComponentsByType('GridFieldDeleteAction');
$config->addComponent(new GridFieldDeleteAction(false));
$config->removeComponentsByType('GridFieldDetailForm');
$config->addComponent(new Heyday\VersionedDataObjects\VersionedDataObjectDetailsForm());
$SlidesField = GridField::create('Slides', 'Slides', $this->owner->Slides()->sort('SortOrder'), $config);

$slideTitle = $this->owner->stat('slide_tab_title') ? $this->owner->stat('slide_tab_title') : 'Slides';
Expand Down

0 comments on commit c0240f1

Please sign in to comment.