Skip to content

Commit

Permalink
Merge pull request #105 from SilbinaryWolf/feat-updatelink
Browse files Browse the repository at this point in the history
feat(Order): Add ability to override Order link
  • Loading branch information
stevie-mayhew committed Jul 18, 2017
2 parents 5e55adf + 82c2f43 commit e1b29eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/order/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,9 @@ public function SummaryOfTotal() {
public function Link() {
//get the account page and go to it
$account = DataObject::get_one('AccountPage');
return $account->Link()."order/$this->ID";
$link = $account->Link()."order/$this->ID";
$this->extend('updateLink', $link);
return $link;
}

/**
Expand Down

0 comments on commit e1b29eb

Please sign in to comment.