Skip to content

Commit

Permalink
FIX: 4.3.0 causes the page in the CMS to throw an exception. (#157)
Browse files Browse the repository at this point in the history
This is because the relationship is looking at the wrong class.
  • Loading branch information
Nathan authored Jan 9, 2019
1 parent 0c31371 commit 8ab58ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/Pages/MemberProfilePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Symbiote\MemberProfiles\Email\MemberConfirmationEmail;
use Symbiote\MemberProfiles\Model\MemberProfileFieldsSection;
use Symbiote\MemberProfiles\Model\MemberProfileField;
use Symbiote\MemberProfiles\Model\MemberProfileSection;
use Symbiote\GridFieldExtensions\GridFieldOrderableRows;
use UndefinedOffset\SortableGridField\Forms\GridFieldSortableRows;
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
Expand Down Expand Up @@ -66,7 +65,6 @@
* @property string $ConfirmationContent
* @property int $PostRegistrationTargetID
* @method \SilverStripe\CMS\Model\SiteTree PostRegistrationTarget()
* @method \SilverStripe\ORM\DataList|\Symbiote\MemberProfiles\Model\MemberProfileSection[] Sections()
* @method \SilverStripe\ORM\DataList|\SilverStripe\Security\Group[] Groups()
* @method \SilverStripe\ORM\DataList|\SilverStripe\Security\Group[] SelectableGroups()
* @method \SilverStripe\ORM\DataList|\SilverStripe\Security\Group[] ApprovalGroups()
Expand Down Expand Up @@ -101,7 +99,7 @@ class MemberProfilePage extends Page

private static $has_many = array (
'Fields' => MemberProfileField::class,
'Sections' => MemberProfileSection::class
'Sections' => MemberProfileFieldsSection::class
);

private static $owns = array(
Expand Down
1 change: 0 additions & 1 deletion src/Pages/MemberProfilePageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
* @property int $PostRegistrationTargetID
* @method \SilverStripe\CMS\Model\SiteTree PostRegistrationTarget()
* @method \SilverStripe\ORM\DataList|\Symbiote\MemberProfiles\Model\MemberProfileField[] Fields()
* @method \SilverStripe\ORM\DataList|\Symbiote\MemberProfiles\Model\MemberProfileSection[] Sections()
* @method \SilverStripe\ORM\DataList|\SilverStripe\Security\Group[] Groups()
* @method \SilverStripe\ORM\DataList|\SilverStripe\Security\Group[] SelectableGroups()
* @method \SilverStripe\ORM\DataList|\SilverStripe\Security\Group[] ApprovalGroups()
Expand Down

0 comments on commit 8ab58ab

Please sign in to comment.