Skip to content

Commit

Permalink
[BF] - Bug: 500 Error Undefined index trying to list any contact grou…
Browse files Browse the repository at this point in the history
…p that is not 'ROLE' type - fixes #706
  • Loading branch information
yannrobin committed May 19, 2021
1 parent 8a80950 commit 36ef829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Contact/ContactController.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ protected function listGetData( $id = null )
}
}

if( !array_key_exists( $cg, $allGroups['ROLE'] ) ) {
if( !array_key_exists( $cg, $cgs ) ) {
$cg = null;
}
}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/contact/list-preamble.foil.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

<?php if( $t->data[ 'params'][ "contactGroups" ]): ?>
<h3> Filtered for Group : <?= $t->data[ 'params'][ "AllContactGroups" ][ $t->data[ 'params'][ "cg" ] ][ 'name' ] ?> </h3>
<h3> Filtered for Group : <?= $t->data[ 'params'][ "contactGroups" ][ $t->data[ 'params'][ "cg" ] ] ?> </h3>
<?php endif; ?>

0 comments on commit 36ef829

Please sign in to comment.