Skip to content

Commit

Permalink
REFACTOR migrate to Silverstripe Link (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirish authored Aug 14, 2024
1 parent fbfcf18 commit 3048ed4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
## Requirements

* dnadesign/silverstripe-elemental: ^5
* dynamic/silverstripe-elemental-baseobject: ^4
* dynamic/silverstripe-elemental-baseobject: ^5

#### Optional

Expand Down
15 changes: 7 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
]
}
}
2 changes: 1 addition & 1 deletion src/Model/GalleryImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function getCMSFields()
$fields->removeByName(array(
'SortOrder',
'PhotoGalleryID',
'ElementLinkID',
'ElementLink',
));
$image = $fields->dataFieldByName('Image')
->setFolderName('Uploads/Elements/PhotoGallery/');
Expand Down

0 comments on commit 3048ed4

Please sign in to comment.