Skip to content

Commit

Permalink
Add linkingmode to users account menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Dec 17, 2015
1 parent 5940f99 commit c15a0ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/extensions/CheckoutUsersControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,13 @@ public function doSaveAddress($data, $form) {
*
*/
public function updateAccountMenu($menu) {
$curr_action = $this->owner->request->param("Action");

$menu->add(new ArrayData(array(
"ID" => 11,
"Title" => _t('Checkout.Addresses','Addresses'),
"Link" => $this->owner->Link("addresses")
"Link" => $this->owner->Link("addresses"),
"LinkingMode" => ($curr_action == "addresses") ? "current" : "link"
)));
}

Expand Down

0 comments on commit c15a0ee

Please sign in to comment.