mirror of
https://github.com/grocy/grocy.git
synced 2025-10-26 05:57:49 +00:00
Some bug fixes. (#1000)
* Fix #997. Remove datetimepicker if FEATURE_FLAG_STOCK_BEST_BEFORE_DATE is not set. * datetimepicker: Fix that SetValue did not set the value if "shortcut-checkbox" (e.g. "never expires") was checked. * Use parent div as clickable area for checkboxes in dropdowns * Fix nightmode-enable * Fix possibly undefined variables in CalendarService.php * Fix undefined variable in GenericEntityApiController.php * Fix "Trying to access property barcodes on non-object" in productpicker * Fix undefined "hintId" in shoppinglocationpicker * Fix undefined variables in locationpicker.blade.php
This commit is contained in:
committed by
GitHub
parent
0624b0df59
commit
5056ca9397
@@ -8,10 +8,10 @@
|
||||
@php if(empty($hint)) { $hint = ''; } @endphp
|
||||
|
||||
<div class="form-group"
|
||||
data-next-input-selector="{{ $nextInputSelector }}"
|
||||
@if(isset($nextInputSelector))data-next-input-selector="{{ $nextInputSelector }}" @endif
|
||||
data-prefill-by-name="{{ $prefillByName }}"
|
||||
data-prefill-by-id="{{ $prefillById }}">
|
||||
<label for="location_id">{{ $__t('Location') }} <span id="{{ $hintId }}"
|
||||
<label for="location_id">{{ $__t('Location') }} <span @if(!empty($hintId))id="{{ $hintId }}" @endif
|
||||
class="small text-muted">{{ $hint }}</span></label>
|
||||
<select class="form-control location-combobox"
|
||||
id="location_id"
|
||||
|
||||
@@ -35,7 +35,12 @@
|
||||
data-target="@productpicker">
|
||||
<option value=""></option>
|
||||
@foreach($products as $product)
|
||||
<option data-additional-searchdata="{{ FindObjectInArrayByPropertyValue($barcodes, 'product_id', $product->id)->barcodes }},"
|
||||
@php $bc = null;
|
||||
if(isset($barcodes)) {
|
||||
$bc = FindObjectInArrayByPropertyValue($barcodes, 'product_id', $product->id);
|
||||
}
|
||||
@endphp
|
||||
<option data-additional-searchdata="@if(isset($bc)){{ $bc->barcodes }}@endif,"
|
||||
value="{{ $product->id }}">{{ $product->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
data-next-input-selector="{{ $nextInputSelector }}"
|
||||
data-prefill-by-name="{{ $prefillByName }}"
|
||||
data-prefill-by-id="{{ $prefillById }}">
|
||||
<label for="shopping_location_id">{{ $__t($label) }} <span id="{{ $hintId }}"
|
||||
<label for="shopping_location_id">{{ $__t($label) }} <span @if(!empty($hintId))id="{{ $hintId }}" @endif
|
||||
class="small text-muted">{{ $hint }}</span></label>
|
||||
<select class="form-control shopping-location-combobox"
|
||||
id="shopping_location_id"
|
||||
|
||||
Reference in New Issue
Block a user