Skip to content

Commit

Permalink
Merge pull request #4 from simonwinter/master
Browse files Browse the repository at this point in the history
Update to HasOneButtonField
  • Loading branch information
gorriecoe authored Oct 8, 2018
2 parents bbfeef6 + eea7ea3 commit 2e9b793
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"homepage": "http://github.com/gorriecoe/silverstripe-linkfield",
"require": {
"gorriecoe/silverstripe-link": "^1.0",
"silvershop/silverstripe-hasonefield": "^2.0",
"silvershop/silverstripe-hasonefield": "^2.1",
"symbiote/silverstripe-gridfieldextensions": "^3.1"
},
"extra": {
Expand Down
5 changes: 3 additions & 2 deletions src/LinkField.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ public function getRecord()
public function getHasOneField()
{
return HasOneButtonField::create(
$this->parent,
$this->name,
$this->title,
$this->parent
null,
$this->title
)
->setForm($this->Form)
->addExtraClass('linkfield__button');
Expand Down

0 comments on commit 2e9b793

Please sign in to comment.