Skip to content

Commit

Permalink
Improve frozen field test for People Picker (NO-JIRA) (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen authored Apr 14, 2026
1 parent c4324ba commit 7bd0bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/element/peopleAutocomplete.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$type = $type ?? 'stand-alone';

// For a frozen field, print the referenced person (if one exists) and link to the person canvas.
if($type == 'field' && $vv_obj['frozen']) {
if($type == 'field' && isset($vv_obj) && $vv_obj['frozen']) {
$personId = $vv_obj[$vv_field_arguments['fieldName']];
if(!empty($personId)) {
$personRecord = $this->Petition->getRecordForId(
Expand Down Expand Up @@ -95,7 +95,7 @@
}
?>

<?php if(!$vv_obj['frozen']): ?>
<?php if(empty($vv_obj['frozen'])): // skip for frozen fields ?>

<script type="module">
<?php if(Cake\Core\Configure::read('debug')): ?>
Expand Down

0 comments on commit 7bd0bdd

Please sign in to comment.