Skip to content

Commit a0d619a

Browse files
committed
Merge remote-tracking branch 'origin/4.0-dev' into 390-merge6
2 parents f3bcaa2 + f2454ff commit a0d619a

File tree

4 files changed

+758
-53
lines changed

4 files changed

+758
-53
lines changed

administrator/components/com_plugins/forms/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<form addfieldprefix="Joomla\Component\Content\Administrator\Field">
2+
<form addfieldprefix="Joomla\Component\Plugins\Administrator\Field">
33
<fieldset>
44
<field
55
name="extension_id"

build/media_source/system/js/fields/joomla-field-module-order.w-c.es6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ customElements.define('joomla-field-module-order', class extends HTMLElement {
9494
const that = this;
9595

9696
Joomla.request({
97-
url: `${url}client_id=${clientId}&position=${originalPosition}`,
97+
url: `${url}&client_id=${clientId}&position=${originalPosition}`,
9898
method: 'GET',
9999
perform: true,
100100
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },

libraries/src/Installer/Adapter/ComponentAdapter.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,11 @@ protected function storeExtension($deleteExisting = false)
947947
}
948948
}
949949

950-
$this->extension->namespace = (string) $this->manifest->namespace;
950+
// Namespace is optional
951+
if (isset($this->manifest->namespace))
952+
{
953+
$this->extension->namespace = (string) $this->manifest->namespace;
954+
}
951955

952956
// If there is not already a row, generate a heap of defaults
953957
if (!$this->currentExtensionId)
@@ -1420,7 +1424,12 @@ public function refreshManifestCache()
14201424
$manifest_details = Installer::parseXMLInstallFile($this->parent->getPath('manifest'));
14211425
$this->parent->extension->manifest_cache = json_encode($manifest_details);
14221426
$this->parent->extension->name = $manifest_details['name'];
1423-
$this->parent->extension->namespace = $manifest_details['namespace'];
1427+
1428+
// Namespace is optional
1429+
if (isset($manifest_details['namespace']))
1430+
{
1431+
$this->parent->extension->namespace = $manifest_details['namespace'];
1432+
}
14241433

14251434
try
14261435
{

0 commit comments

Comments
 (0)