mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed QU conversion form from_qu_id initialisation (references #1843)
This commit is contained in:
@@ -58,10 +58,13 @@
|
||||
@foreach($quantityunits as $quantityunit)
|
||||
@php
|
||||
$selected = false;
|
||||
if ($mode == 'edit' && $quantityunit->id == $quConversion->from_qu_id)
|
||||
if ($mode == 'edit')
|
||||
{
|
||||
if ($quantityunit->id == $quConversion->from_qu_id)
|
||||
{
|
||||
$selected = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($product != null && $quantityunit->id == $product->qu_id_stock)
|
||||
|
Reference in New Issue
Block a user