mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Don't display QU conversions for other products on the product edit page (fixes #400)
This commit is contained in:
parent
901b345714
commit
420e4b933f
5
changelog/54_UNRELEASED_2019-xx-xx.md
Normal file
5
changelog/54_UNRELEASED_2019-xx-xx.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
### Stock fixes
|
||||||
|
- Fixed that product specific quantity unit conversions (product overrides) were also displayed on the product edit page of other products with the same stock quantity unit
|
||||||
|
|
||||||
|
### Recipe fixes
|
||||||
|
- Fixed that recipes were displayed without ingredients if the total recipe count was > 100
|
@ -1,2 +0,0 @@
|
|||||||
### Recipe fixes
|
|
||||||
- Fixed that recipes were displayed without ingredients if the total recipe count was > 100
|
|
@ -268,6 +268,7 @@
|
|||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@if($mode == "edit")
|
@if($mode == "edit")
|
||||||
@foreach($quConversions as $quConversion)
|
@foreach($quConversions as $quConversion)
|
||||||
|
@if($quConversion->product_id == $product->id || $quConversion->product_id == null)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
<a class="btn btn-sm btn-info qu-conversion-edit-button @if($quConversion->product_id == null) disabled @endif" href="#" data-qu-conversion-id="{{ $quConversion->id }}">
|
<a class="btn btn-sm btn-info qu-conversion-edit-button @if($quConversion->product_id == null) disabled @endif" href="#" data-qu-conversion-id="{{ $quConversion->id }}">
|
||||||
@ -294,6 +295,7 @@
|
|||||||
from_qu_id xx{{ $quConversion->from_qu_id }}xx
|
from_qu_id xx{{ $quConversion->from_qu_id }}xx
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user