Skip to content

Commit

Permalink
Strict types update
Browse files Browse the repository at this point in the history
  • Loading branch information
vitex committed Mar 25, 2021
1 parent f6650e7 commit f3c3882
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/AbraFlexi/ui/RecordTypeSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ public function __construct($engine, $valueType = 'id', $conditions = [])
$types[($valueType == 'kod' ? 'code:' : '').$type[$valueType]] = $type['nazev'];
}
}
parent::__construct($engine->getEvidence(), $types,
($valueType == 'kod' ? \AbraFlexi\RO::code($engine->getDataValue($valueType))
: $engine->getDataValue($valueType))
);
$default = $engine->getDataValue($valueType);

parent::__construct($engine->getEvidence(), $types, ( $valueType == 'kod' && !empty($default) ? \AbraFlexi\RO::code($default) : $default));
}
}

0 comments on commit f3c3882

Please sign in to comment.