Skip to content

Commit

Permalink
Поправил отображение флага разрешения записи разговоров
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Oct 10, 2024
1 parent 245d95e commit 5a71b5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AdminCabinet/Forms/ExtensionEditForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ public function initialize($entity = null, $options = null): void
// Show_in_phonebook
$cheskarr = ['value' => null];
if ($entity->show_in_phonebook) {
$cheskarr = ['checked' => 'checked', 'value' => null];
$cheskarr = ['checked' => '1'];
}
$this->add(new Check('show_in_phonebook', $cheskarr));

// Public_access
$cheskarr = ['value' => null];
if ($entity->public_access) {
$cheskarr = ['checked' => 'checked', 'value' => null];
$cheskarr = ['checked' => '1'];
}
$this->add(new Check('public_access', $cheskarr));

Expand Down Expand Up @@ -145,7 +145,7 @@ public function initialize($entity = null, $options = null): void
// SIP EnableRecording
$checkArr = ['value' => null];
if ($entity->sip_enableRecording !== '0') {
$checkArr = ['checked' => 'checked', 'value' => null];
$checkArr = ['checked' => '1'];
}
$this->add(new Check('sip_enableRecording', $checkArr));

Expand Down

0 comments on commit 5a71b5f

Please sign in to comment.