Skip to content

Commit

Permalink
Fix header translation for modal select field (joomla#43878)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik authored and dgrammatiko committed Aug 11, 2024
1 parent 3cf8a6c commit 702367b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/joomla/form/field/modal-select/buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@
$modalSelect = [
'popupType' => 'iframe',
'src' => empty($urls['select']) ? '' : Route::_($urls['select'], false),
'textHeader' => $modalTitles['select'] ?? Text::_('JSELECT'),
'textHeader' => Text::_($modalTitles['select'] ?? 'JSELECT'),
];
$modalNew = [
'popupType' => 'iframe',
'src' => empty($urls['new']) ? '' : Route::_($urls['new'], false),
'textHeader' => $modalTitles['new'] ?? Text::_('JACTION_CREATE'),
'textHeader' => Text::_($modalTitles['new'] ?? 'JACTION_CREATE'),
];
$modalEdit = [
'popupType' => 'iframe',
'src' => empty($urls['edit']) ? '' : Route::_($urls['edit'], false),
'textHeader' => $modalTitles['edit'] ?? Text::_('JACTION_EDIT'),
'textHeader' => Text::_($modalTitles['edit'] ?? 'JACTION_EDIT'),
];

// Decide when the select button always will be visible
Expand Down

0 comments on commit 702367b

Please sign in to comment.