Skip to content

Commit

Permalink
Fix Configurtion Breadcrumb for isConfigurationTables
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Sep 4, 2024
1 parent c71d9c4 commit bc13667
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/Controller/Component/BreadcrumbComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ public function beforeRender(EventInterface $event) {

// Do we have a target model, and if so is it a configuration
// model (eg: ApiUsers) or an object model (eg: CoPeople)?
if(isset($controller->$modelsName) // May not be set under certain error conditions
&& method_exists($controller->$modelsName, "isConfigurationTable")) {
if(\is_object($controller->$modelsName)
&& method_exists($controller->$modelsName, "isConfigurationTable")
) {
$controller->set('vv_bc_configuration_link', $controller->$modelsName->isConfigurationTable());
} else {
$controller->set('vv_bc_configuration_link', false);
Expand Down

0 comments on commit bc13667

Please sign in to comment.