Skip to content

Commit

Permalink
bug in L blade
Browse files Browse the repository at this point in the history
  • Loading branch information
aponscat committed Nov 25, 2021
1 parent 3fd3770 commit adbb903
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/Admin/views/attributes/L.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@
@if($p_mode=='V')
@php
$default_id=$attribute['lookup_info']['info']['default_id'];
$lookup_value=$attribute['params']->lookup->$default_id[0];
if (isset($attribute['lookup_info']['selected_values'][0]['label']))
{
$lookup_value=$attribute['lookup_info']['selected_values'][0]['label'];
}
}
else
{
if (isset($attribute['params']->lookup->$default_id[0]))
{
$lookup_value=$attribute['params']->lookup->$default_id[0];
}
else
{
$lookup_value='';
}
}
@endphp

<div class="column column-text">
Expand Down

0 comments on commit adbb903

Please sign in to comment.