Skip to content

Commit

Permalink
Remove unnecessary variable (CFM-125)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen committed Apr 14, 2026
1 parent 7aa02a3 commit 27b2a57
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/src/Controller/ExternalIdentitiesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,6 @@ public function relink(string $id) {
}
}

// The people picker expects a valid $vv_obj, so set it.
// (This is usually set in StandardController by the standard actions.)
$table = $this->getCurrentTable();
$query = $table->findById($id);

try {
$obj = $query->firstOrFail();
}
catch(\Exception $e) {
// findById throws Cake\Datasource\Exception\RecordNotFoundException
$this->Flash->error($e->getMessage());
return $this->generateRedirect(null);
}

$this->set('vv_obj', $obj);

// Fall through to the view to render a People Picker

$this->set('vv_title', __d('operation', 'relink.a', [__d('controller', 'ExternalIdentities', [1])]));
Expand Down

0 comments on commit 27b2a57

Please sign in to comment.