Skip to content

Commit f200a7d

Browse files
committed
Merge remote-tracking branch 'upstream/5.4-dev' into upmerges/2025-08-27
2 parents 7d12a9f + 5172a81 commit f200a7d

File tree

402 files changed

+898
-1441
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

402 files changed

+898
-1441
lines changed

.github/CONTRIBUTING.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ You are welcome to submit a contribution for review and possible inclusion in th
1515
Please be patient as not all items will be viewed or tested immediately (remember, all bug testing for the Joomla! CMS is done by volunteers) and be receptive to feedback about your code.
1616

1717
#### Branches
18-
While 4.4 is in maintenance mode, ie we are still fixing bugs, PRs should be made to the `4.4-dev` branch. Merged bugfixes will be upmerged into the current 5.x branch. If a bug is only in the 5.x series the PR should be made to the current 5.x branch (currently 5.1).
18+
Joomla 4.4 is in security maintenance mode, until 14th October 2025, which means it will only receive security fixes. Bug fixing PRs should be made to the `5.3-dev` branch. Merged bugfixes will be upmerged into the current branches. New features that do not break backwards compatibility should be made to the `5.4-dev` branch otherwise they should be made to the `6.0-dev` branch.
1919

2020

2121
| Branch | Purpose |
2222
| ------ | ------- |
23-
| 4.4-dev | Branch for the current 4.x Joomla version. Currently in maintenance mode |
24-
| 5.1-dev | Branch for the current 5.x Joomla version. Bugfix only for 5.x go into this branch. |
25-
| 5.2-dev | Branch for the next minor 5.x Joomla version. New features go into this branch. |
23+
| 4.4-dev | Branch for the current 4.x Joomla version. Currently in security maintenance mode. |
24+
| 5.3-dev | Branch for the current 5.x Joomla version. Bugfix only for 5.x go into this branch. |
25+
| 5.4-dev | Branch for the next minor 5.x Joomla version. New features go into this branch. |
2626
| 6.0-dev | Branch for the next major Joomla version. New features that include a b/c break have to go into this branch. |
27-

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`) VALUES
22
(0, 'plg_fields_note', 'plugin', 'note', 'fields', 0, 1, 1, 0, 1, '', '{"class":"alert alert-info","heading":"h4"}', '', -1, 0);
3+
INSERT INTO `#__extensions` (`package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `locked`, `manifest_cache`, `params`, `custom_data`, `ordering`, `state`)
4+
SELECT 0, 'plg_behaviour_compat6', 'plugin', 'compat6', 'behaviour', 0, 1, 1, 0, 1, '', '{"classes_aliases":"1","legacy_classes":"1"}', '', -1, 0
5+
WHERE NOT EXISTS (SELECT * FROM `#__extensions` e WHERE e.`type` = 'plugin' AND e.`element` = 'compat6' AND e.`folder` = 'behaviour' AND e.`client_id` = 0);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state") VALUES
22
(0, 'plg_fields_note', 'plugin', 'note', 'fields', 0, 1, 1, 0, 1, '', '{"class":"alert alert-info","heading":"h4"}', '', -1, 0);
3+
INSERT INTO "#__extensions" ("package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "locked", "manifest_cache", "params", "custom_data", "ordering", "state")
4+
SELECT 0, 'plg_behaviour_compat6', 'plugin', 'compat6', 'behaviour', 0, 1, 1, 0, 1, '', '{"classes_aliases":"1","legacy_classes":"1"}', '', -1, 0
5+
WHERE NOT EXISTS (SELECT * FROM "#__extensions" e WHERE e."type" = 'plugin' AND e."element" = 'compat6' AND e."folder" = 'behaviour' AND e."client_id" = 0);

administrator/components/com_associations/src/View/Association/HtmlView.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Joomla\CMS\Factory;
1515
use Joomla\CMS\Form\Form;
1616
use Joomla\CMS\Language\Text;
17-
use Joomla\CMS\MVC\View\GenericDataException;
1817
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1918
use Joomla\CMS\Pagination\Pagination;
2019
use Joomla\CMS\Router\Route;
@@ -223,11 +222,7 @@ public function display($tpl = null): void
223222
{
224223
/** @var AssociationModel $model */
225224
$model = $this->getModel();
226-
227-
// Check for errors.
228-
if (\count($errors = $model->getErrors())) {
229-
throw new GenericDataException(implode("\n", $errors), 500);
230-
}
225+
$model->setUseExceptions(true);
231226

232227
$this->app = Factory::getApplication();
233228
$this->form = $model->getForm();

administrator/components/com_associations/src/View/Associations/HtmlView.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public function display($tpl = null)
129129
{
130130
/** @var AssociationsModel $model */
131131
$model = $this->getModel();
132+
$model->setUseExceptions(true);
132133

133134
$this->state = $model->getState();
134135
$this->filterForm = $model->getFilterForm();
@@ -236,11 +237,6 @@ public function display($tpl = null)
236237
}
237238
}
238239

239-
// Check for errors.
240-
if (\count($errors = $model->getErrors())) {
241-
throw new \Exception(implode("\n", $errors), 500);
242-
}
243-
244240
$this->addToolbar();
245241

246242
parent::display($tpl);

administrator/components/com_banners/src/Table/BannerTable.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,15 @@ public function store($updateNulls = true)
220220
{
221221
$db = $this->getDatabase();
222222

223+
// Verify that the alias is unique
224+
$table = new self($db, $this->getDispatcher());
225+
226+
if ($table->load(['alias' => $this->alias, 'catid' => $this->catid]) && ($table->id != $this->id || $this->id == 0)) {
227+
$this->setError(Text::_('COM_BANNERS_ERROR_UNIQUE_ALIAS'));
228+
229+
return false;
230+
}
231+
223232
if (empty($this->id)) {
224233
$purchaseType = $this->purchase_type;
225234

@@ -265,15 +274,6 @@ public function store($updateNulls = true)
265274
$this->setError($oldrow->getError());
266275
}
267276

268-
// Verify that the alias is unique
269-
$table = new self($db, $this->getDispatcher());
270-
271-
if ($table->load(['alias' => $this->alias, 'catid' => $this->catid]) && ($table->id != $this->id || $this->id == 0)) {
272-
$this->setError(Text::_('COM_BANNERS_ERROR_UNIQUE_ALIAS'));
273-
274-
return false;
275-
}
276-
277277
// Store the new row
278278
parent::store($updateNulls);
279279

administrator/components/com_banners/src/View/Banners/HtmlView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function initializeView()
7373
parent::initializeView();
7474

7575
/** @var BannersModel $model */
76-
$model = $this->getModel();
76+
$model = $this->getModel();
7777

7878
$this->categories = $model->getCategoryOrders();
7979
$this->canDo = ContentHelper::getActions('com_banners', 'category', $this->state->get('filter.category_id'));

administrator/components/com_banners/src/View/Clients/HtmlView.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Joomla\CMS\Form\Form;
1414
use Joomla\CMS\Helper\ContentHelper;
1515
use Joomla\CMS\Language\Text;
16-
use Joomla\CMS\MVC\View\GenericDataException;
1716
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1817
use Joomla\CMS\Pagination\Pagination;
1918
use Joomla\CMS\Toolbar\ToolbarHelper;
@@ -92,7 +91,9 @@ class HtmlView extends BaseHtmlView
9291
public function display($tpl = null): void
9392
{
9493
/** @var ClientsModel $model */
95-
$model = $this->getModel();
94+
$model = $this->getModel();
95+
$model->setUseExceptions(true);
96+
9697
$this->items = $model->getItems();
9798
$this->pagination = $model->getPagination();
9899
$this->state = $model->getState();
@@ -103,11 +104,6 @@ public function display($tpl = null): void
103104
$this->setLayout('emptystate');
104105
}
105106

106-
// Check for errors.
107-
if (\count($errors = $model->getErrors())) {
108-
throw new GenericDataException(implode("\n", $errors), 500);
109-
}
110-
111107
$this->addToolbar();
112108

113109
// Add form control fields

administrator/components/com_banners/src/View/Download/HtmlView.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
namespace Joomla\Component\Banners\Administrator\View\Download;
1212

1313
use Joomla\CMS\Form\Form;
14-
use Joomla\CMS\MVC\View\GenericDataException;
1514
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
1615
use Joomla\Component\Banners\Administrator\Model\DownloadModel;
1716

@@ -48,13 +47,10 @@ class HtmlView extends BaseHtmlView
4847
public function display($tpl = null): void
4948
{
5049
/** @var DownloadModel $model */
51-
$model = $this->getModel();
52-
$this->form = $model->getForm();
50+
$model = $this->getModel();
51+
$model->setUseExceptions(true);
5352

54-
// Check for errors.
55-
if (\count($errors = $model->getErrors())) {
56-
throw new GenericDataException(implode("\n", $errors), 500);
57-
}
53+
$this->form = $model->getForm();
5854

5955
parent::display($tpl);
6056
}

0 commit comments

Comments
 (0)