Skip to content

Commit

Permalink
Merge remote-tracking branch 'Joomla/4.4-dev' into 5.0/upmerge-2023-1…
Browse files Browse the repository at this point in the history
…2-12
  • Loading branch information
bembelimen committed Dec 12, 2023
2 parents 0744526 + 6a177cb commit b4fd0bc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<?php endif; ?>
</td>
<td class="d-none d-md-table-cell">
<?php echo htmlspecialchars($item->editor); ?>
<?php echo empty($item->editor) ? $item->editor_user_id : htmlspecialchars($item->editor); ?>
</td>
<td class="text-end">
<?php echo number_format((int) $item->character_count, 0, Text::_('DECIMALS_SEPARATOR'), Text::_('THOUSANDS_SEPARATOR')); ?>
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/mod_menu.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ MOD_MENU_HELP_SECURITY="Security Centre"
MOD_MENU_HELP_SHOP="Joomla! Shop"
MOD_MENU_HELP_SUPPORT_CUSTOM_FORUM="Custom Support Forum" ; Will be used if the localised sample data has a URL for the desired community forum or if the 'Custom Support Forum' field parameter in the Administrator Menu module has a URL
MOD_MENU_HELP_SUPPORT_OFFICIAL_FORUM="Official Support Forum"
MOD_MENU_HELP_SUPPORT_OFFICIAL_LANGUAGE_FORUM="Official Language Forums" ; If you have displayed the specific language forum, use something like "Official French Forum" in your language.
MOD_MENU_HELP_SUPPORT_OFFICIAL_LANGUAGE_FORUM="Official Language Forums" ; If you have displayed the specific language forum, use something like 'Official French Forum' in your language.
MOD_MENU_HELP_SUPPORT_OFFICIAL_LANGUAGE_FORUM_VALUE="511" ; The # of the specific language forum in https://forum.joomla.org/ (example: 19 for French). Default is '511' which is the section for all languages forums.
MOD_MENU_HELP_TRANSLATIONS="Joomla! Translations"
MOD_MENU_HELP_USER_GROUPS="Joomla User Groups"
Expand Down
2 changes: 1 addition & 1 deletion administrator/language/en-GB/plg_fields_imagelist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

PLG_FIELDS_IMAGELIST="Fields - Imagelist"
PLG_FIELDS_IMAGELIST_LABEL="List of Images (%s)"
PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_DESC="This directory is relative to \"images\" directory in Joomla! root." ; Don't translate "images"
PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_DESC="This directory is relative to \"images\" directory in Joomla! root." ; Don't translate 'images'
PLG_FIELDS_IMAGELIST_PARAMS_DIRECTORY_LABEL="Directory"
PLG_FIELDS_IMAGELIST_PARAMS_IMAGE_CLASS_LABEL="Image Class"
PLG_FIELDS_IMAGELIST_PARAMS_MULTIPLE_LABEL="Multiple"
Expand Down
8 changes: 6 additions & 2 deletions build/media_source/com_finder/js/finder.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@
try {
response = JSON.parse(xhr.responseText);
} catch (e) {
Joomla.renderMessages(Joomla.ajaxErrorsMessages(xhr, 'parsererror'));
// Something went wrong, but we are not going to bother the enduser with this
// eslint-disable-next-line no-console
console.error(e);
return;
}

if (Object.prototype.toString.call(response.suggestions) === '[object Array]') {
target.awesomplete.list = response.suggestions;
}
}).catch((xhr) => {
Joomla.renderMessages(Joomla.ajaxErrorsMessages(xhr));
// Something went wrong, but we are not going to bother the enduser with this
// eslint-disable-next-line no-console
console.error(xhr);
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion components/com_contact/src/Model/ContactModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected function populateState()
*/
public function getForm($data = [], $loadData = true)
{
$form = $this->loadForm('com_contact.contact', 'contact', ['control' => 'jform', 'load_data' => true]);
$form = $this->loadForm('com_contact.contact', 'contact', ['control' => 'jform', 'load_data' => $loadData]);

if (empty($form)) {
return false;
Expand Down
6 changes: 4 additions & 2 deletions libraries/src/Installer/InstallerScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function preflight($type, $parent)

// Abort if the extension being installed is not newer than the currently installed version
if (!$this->allowDowngrades && strtolower($type) === 'update') {
$manifest = $this->getItemArray('manifest_cache', '#__extensions', 'element', $this->extension);
$manifest = $this->getItemArray('manifest_cache', '#__extensions', 'name', $this->extension);

// Check whether we have an old release installed and skip this check when this here is the initial install.
if (!isset($manifest['version'])) {
Expand Down Expand Up @@ -301,7 +301,9 @@ public function getItemArray($element, $table, $column, $identifier)
$db->setQuery($query);

// Load the single cell and json_decode data
return json_decode($db->loadResult(), true);
$result = $db->loadResult();

return $result === null ? [] : json_decode($result, true);
}

/**
Expand Down

0 comments on commit b4fd0bc

Please sign in to comment.