diff --git a/README.md b/README.md index 044fc20..d39a2ac 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ## Requirements * dnadesign/silverstripe-elemental: ^5 -* dynamic/silverstripe-elemental-baseobject: ^4 +* dynamic/silverstripe-elemental-baseobject: ^5 #### Optional diff --git a/composer.json b/composer.json index 6e9c9a7..0cb3823 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,7 @@ ], "require": { "dnadesign/silverstripe-elemental": "^5", - "dynamic/silverstripe-elemental-baseobject": "^4", - "silverstripe/framework": "^5" + "dynamic/silverstripe-elemental-baseobject": "^5" }, "require-dev": { "silverstripe/recipe-testing": "^3" @@ -41,17 +40,17 @@ "config": { "allow-plugins": { "composer/installers": true, - "silverstripe/vendor-plugin": true, - "silverstripe/recipe-plugin": true + "silverstripe/recipe-plugin": true, + "silverstripe/vendor-plugin": true }, "process-timeout": 600 }, "extra": { - "expose": [ - "thirdparty" - ], "branch-alias": { "dev-master": "5.x-dev" - } + }, + "expose": [ + "thirdparty" + ] } } diff --git a/src/Model/GalleryImage.php b/src/Model/GalleryImage.php index 1d89938..e87d535 100644 --- a/src/Model/GalleryImage.php +++ b/src/Model/GalleryImage.php @@ -81,7 +81,7 @@ public function getCMSFields() $fields->removeByName(array( 'SortOrder', 'PhotoGalleryID', - 'ElementLinkID', + 'ElementLink', )); $image = $fields->dataFieldByName('Image') ->setFolderName('Uploads/Elements/PhotoGallery/');