mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-03 16:09:36 +00:00
Fixed bug with parameter parsing
This commit is contained in:
parent
2f8553303d
commit
fa04fface3
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ readonly class ConradProvider implements InfoProviderInterface
|
|||
|
||||
// fallback implementation
|
||||
$values = implode(", ", array_map(fn($q) =>
|
||||
array_key_exists('unit', $q) ? $q['value']." ". $q['unit'] : $q['value']
|
||||
array_key_exists('unit', $q) ? $q['value']." ". ($q['unit']['name'] ?? $q['unit']) : $q['value']
|
||||
, $p['values']));
|
||||
return ParameterDTO::parseValueIncludingUnit(
|
||||
name: $p['attributeName'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue