mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01:00
Fixed QU conversion form from_qu_id initialisation (references #1843)
This commit is contained in:
parent
5df81a74c6
commit
af4dd446ab
|
|
@ -58,10 +58,13 @@
|
||||||
@foreach($quantityunits as $quantityunit)
|
@foreach($quantityunits as $quantityunit)
|
||||||
@php
|
@php
|
||||||
$selected = false;
|
$selected = false;
|
||||||
if ($mode == 'edit' && $quantityunit->id == $quConversion->from_qu_id)
|
if ($mode == 'edit')
|
||||||
|
{
|
||||||
|
if ($quantityunit->id == $quConversion->from_qu_id)
|
||||||
{
|
{
|
||||||
$selected = true;
|
$selected = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($product != null && $quantityunit->id == $product->qu_id_stock)
|
if ($product != null && $quantityunit->id == $product->qu_id_stock)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user