Fixed alternative attribute parsing bug in FromXmlService

This commit is contained in:
Nav
2024-10-05 14:37:19 +01:00
parent e1179d960f
commit f2e26af210

View File

@@ -394,7 +394,7 @@ class FromXmlService
return new Signal( return new Signal(
$attributes['name'] ?? null, $attributes['name'] ?? null,
$attributes['pad-key'] ?? null, $attributes['pad-key'] ?? null,
isset($attributes['alternative']) ? (bool) $attributes['alternative'] : null, isset($attributes['alternative']) ? trim($attributes['alternative']) === 'true' : null,
$this->stringService->tryStringToInt($attributes['index'] ?? null), $this->stringService->tryStringToInt($attributes['index'] ?? null),
$attributes['function'] ?? null, $attributes['function'] ?? null,
$attributes['field'] ?? null $attributes['field'] ?? null