Skip to content

Commit

Permalink
Additional fix for CFM-375
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed May 24, 2025
1 parent e5e2907 commit 29da570
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ApiSourceEndpointsController extends StandardPluginController {
public function beforeRender(\Cake\Event\EventInterface $event) {
$vv_obj = $this->viewBuilder()->getVar('vv_obj');

if(!empty($vv_obj)) {
if(!empty($vv_obj->api_source_id)) {
$apiSource = $this->ApiSourceEndpoints->ApiSources->get(
$vv_obj->api_source_id,
['contain' => 'ExternalIdentitySources']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@

// This view does currently not support read-only
if($vv_action == 'edit') {
print $this->element('notify/banner', [
'info' => __d('api_connector', 'information.endpoint.push', [$vv_push_endpoint])
]);
if(!empty($vv_push_endpoint)) {
print $this->element('notify/banner', [
'info' => __d('api_connector', 'information.endpoint.push', [$vv_push_endpoint])
]);
}

print $this->element('form/listItem', [
'arguments' => [
Expand Down

0 comments on commit 29da570

Please sign in to comment.