From 82c2f43d901576a0704755e52e47e5c25ef7439f Mon Sep 17 00:00:00 2001 From: Jake Bentvelzen Date: Tue, 18 Jul 2017 16:31:00 +1000 Subject: [PATCH] feat(Order): Add ability to override Order link --- code/order/Order.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/order/Order.php b/code/order/Order.php index 95edfbab..0e0a8a10 100644 --- a/code/order/Order.php +++ b/code/order/Order.php @@ -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; } /**