Merge pull request #11578 from snipe/fixes/conditionally_add_nbsp

Switched to conditionally adding the nbsp; that the table needs for proper layout if cell is empty
This commit is contained in:
snipe 2022-08-01 14:07:50 -07:00 committed by GitHub
commit a51b446a10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -472,10 +472,14 @@
@elseif (($field->format=='DATE') && ($asset->{$field->db_column_name()}!=''))
{{ \App\Helpers\Helper::getFormattedDateObject($asset->{$field->db_column_name()}, 'date', false) }}
@else
{!! nl2br(e($asset->{$field->db_column_name()})) !!}  
{!! nl2br(e($asset->{$field->db_column_name()})) !!}
@endif
@endif
@if ($asset->{$field->db_column_name()}=='')
 
@endif
</div>
</div>
@endforeach