Skip to content

Improve frozen field test for People Picker (NO-JIRA) #389

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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