diff --git a/app/src/Controller/StandardController.php b/app/src/Controller/StandardController.php index 808f6214b..b4883090d 100644 --- a/app/src/Controller/StandardController.php +++ b/app/src/Controller/StandardController.php @@ -108,8 +108,10 @@ public function add() { $this->set('vv_obj', $obj); // PrimaryLinkTrait, via AppController - $this->getPrimaryLink(); - + // Check if I have already calculated it up the tree of execution + if(empty($this->cur_pl->value) && empty($this->cur_pl->attr)) { + $this->getPrimaryLink(); + } // AutoViewVarsTrait, via AppController $this->populateAutoViewVars();