diff --git a/changelog/54_UNRELEASED_2019-xx-xx.md b/changelog/54_UNRELEASED_2019-xx-xx.md new file mode 100644 index 00000000..1c8d09f2 --- /dev/null +++ b/changelog/54_UNRELEASED_2019-xx-xx.md @@ -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 diff --git a/changelog/54_x.x.x_2019-xx-xx.md b/changelog/54_x.x.x_2019-xx-xx.md deleted file mode 100644 index 2e7068b7..00000000 --- a/changelog/54_x.x.x_2019-xx-xx.md +++ /dev/null @@ -1,2 +0,0 @@ -### Recipe fixes -- Fixed that recipes were displayed without ingredients if the total recipe count was > 100 diff --git a/views/productform.blade.php b/views/productform.blade.php index bedeb439..8a128474 100644 --- a/views/productform.blade.php +++ b/views/productform.blade.php @@ -268,32 +268,34 @@ @if($mode == "edit") @foreach($quConversions as $quConversion) - - - - - - - - - - - {{ $quConversion->factor }} - - - {{ FindObjectInArrayByPropertyValue($quantityunits, 'id', $quConversion->to_qu_id)->name }} - - - @if($quConversion->product_id != null) - {{ $__t('Product overrides') }} - @else - {{ $__t('Default conversions') }} - @endif - - - from_qu_id xx{{ $quConversion->from_qu_id }}xx - - + @if($quConversion->product_id == $product->id || $quConversion->product_id == null) + + + + + + + + + + + {{ $quConversion->factor }} + + + {{ FindObjectInArrayByPropertyValue($quantityunits, 'id', $quConversion->to_qu_id)->name }} + + + @if($quConversion->product_id != null) + {{ $__t('Product overrides') }} + @else + {{ $__t('Default conversions') }} + @endif + + + from_qu_id xx{{ $quConversion->from_qu_id }}xx + + + @endif @endforeach @endif