Skip to content

Commit

Permalink
#835 Поправил описание Select элемента формы
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Nov 14, 2024
1 parent 055203f commit ea07641
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/AdminCabinet/Forms/DefaultIncomingRouteForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,17 @@ public function initialize($entity = null, $options = null): void
break;
}
case 'audio_message_id' :{
// Audio_message_id
$fileId = (string)$options['soundfiles'];
if (empty($fileId)) {
$fileId = 'none';
}
$audioMessage = new Select(
'audio_message_id',
$fileId,
$options['soundfiles'],
[
'using' => [
'id',
'name',
],
'useEmpty' => false,
'class' => 'ui selection dropdown search audio-message-select',
]
'using' => [
'id',
'name',
],
'useEmpty' => true,
'class' => 'ui selection dropdown search audio-message-select',
]
);
$this->add($audioMessage);
}
Expand Down

0 comments on commit ea07641

Please sign in to comment.