Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not reset the primaryLink if already set.
Ioannis committed Mar 11, 2024
1 parent 0305173 commit 58a7cd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 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();

0 comments on commit 58a7cd7

Please sign in to comment.