mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Check for empty instead of string comparison
This commit is contained in:
parent
b0329d70ec
commit
ba40f44959
|
|
@ -265,7 +265,7 @@
|
||||||
<span id="stock-{{ $stockEntry->id }}-purchased-date">{{ $stockEntry->purchased_date }}</span>
|
<span id="stock-{{ $stockEntry->id }}-purchased-date">{{ $stockEntry->purchased_date }}</span>
|
||||||
<time id="stock-{{ $stockEntry->id }}-purchased-date-timeago"
|
<time id="stock-{{ $stockEntry->id }}-purchased-date-timeago"
|
||||||
class="timeago timeago-contextual"
|
class="timeago timeago-contextual"
|
||||||
@if($stockEntry->purchased_date != "") datetime="{{ $stockEntry->purchased_date }} 23:59:59" @endif></time>
|
@if(!empty($stockEntry->purchased_date)) datetime="{{ $stockEntry->purchased_date }} 23:59:59" @endif></time>
|
||||||
</td>
|
</td>
|
||||||
<td class="d-none">{{ $stockEntry->purchased_date }}</td>
|
<td class="d-none">{{ $stockEntry->purchased_date }}</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
||||||
|
|
@ -352,7 +352,7 @@
|
||||||
<span id="product-{{ $currentStockEntry->product_id }}-next-due-date">{{ $currentStockEntry->best_before_date }}</span>
|
<span id="product-{{ $currentStockEntry->product_id }}-next-due-date">{{ $currentStockEntry->best_before_date }}</span>
|
||||||
<time id="product-{{ $currentStockEntry->product_id }}-next-due-date-timeago"
|
<time id="product-{{ $currentStockEntry->product_id }}-next-due-date-timeago"
|
||||||
class="timeago timeago-contextual"
|
class="timeago timeago-contextual"
|
||||||
@if($currentStockEntry->best_before_date != "") datetime="{{ $currentStockEntry->best_before_date }} 23:59:59" @endif></time>
|
@if(!empty($currentStockEntry->best_before_date)) datetime="{{ $currentStockEntry->best_before_date }} 23:59:59" @endif></time>
|
||||||
</td>
|
</td>
|
||||||
<td class="d-none">
|
<td class="d-none">
|
||||||
@foreach(FindAllObjectsInArrayByPropertyValue($currentStockLocations, 'product_id', $currentStockEntry->product_id) as $locationsForProduct)
|
@foreach(FindAllObjectsInArrayByPropertyValue($currentStockLocations, 'product_id', $currentStockEntry->product_id) as $locationsForProduct)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user