* Fix bug for js.
This commit is contained in:
@@ -94,7 +94,7 @@ function buildTable(resp)
|
||||
if(dataview?.langs)
|
||||
{
|
||||
var langs = JSON.parse(dataview.langs);
|
||||
if(langs) fieldName = langs?.[field]?.[clientLang] ? $langs[field][clientLang] : fieldName;
|
||||
if(langs) fieldName = langs?.[field]?.[clientLang] ? langs[field][clientLang] : fieldName;
|
||||
}
|
||||
|
||||
html += "<th>" + fieldName + "</th>";
|
||||
|
||||
@@ -114,10 +114,7 @@
|
||||
<?php foreach($data as $value):?>
|
||||
<?php echo '<tr>';?>
|
||||
<?php foreach($fields as $key => $field):?>
|
||||
<?php
|
||||
$tdValue = isset($value->$key) ? $value->$key : 'null';
|
||||
if(is_array(json_decode($tdValue))) $tdValue = 'null';
|
||||
?>
|
||||
<?php $tdValue = isset($value->$key) ? $value->$key : 'null';?>
|
||||
<td title='<?php echo $tdValue;?>'><?php echo $tdValue;?></td>
|
||||
<?php endforeach;?>
|
||||
<?php echo '</tr>';?>
|
||||
|
||||
Reference in New Issue
Block a user