Skip to content

Commit

Permalink
Merge branch '4.x' into 4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 9, 2024
2 parents 91d9023 + f4d1f19 commit 46853f1
Show file tree
Hide file tree
Showing 13 changed files with 635 additions and 635 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Fixed a bug where blank user group descriptions weren’t getting omitted from project config data. ([#16272](https://github.com/craftcms/cms/pull/16272))
- Fixed a bug where pressing <kbd>Return</kbd> when a color text input within an editable table was focused was submitting the form rather than moving focus to the next row.
- Fixed a JavaScript error that occurred on the Plugins index page, if there were any missing plugins associated with the Craft CMS license and no plugins were Composer-installed yet.

## 4.13.5 - 2024-12-03

Expand Down
1,245 changes: 622 additions & 623 deletions composer.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/elements/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,8 @@ protected function thumbSvg(): ?string
// Choose a color based on the UUID
$uid = strtolower($this->uid ?? '00ff');
$totalColors = count(self::$photoColors);
$color1Index = base_convert(substr($uid, 0, 2), 16, 10) % $totalColors;
$color2Index = base_convert(substr($uid, 2, 2), 16, 10) % $totalColors;
$color1Index = (int)base_convert(substr($uid, 0, 2), 16, 10) % $totalColors;
$color2Index = (int)base_convert(substr($uid, 2, 2), 16, 10) % $totalColors;
if ($color2Index === $color1Index) {
$color2Index = ($color1Index + 1) % $totalColors;
}
Expand Down
1 change: 1 addition & 0 deletions src/elements/db/ElementQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1359,6 +1359,7 @@ public function cache($duration = true, $dependency = null): \yii\db\Query|Eleme

/**
* @inheritdoc
* @return Query
* @throws QueryAbortedException if it can be determined that there won’t be any results
*/
public function prepare($builder): Query
Expand Down
1 change: 0 additions & 1 deletion src/elements/db/EntryQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,6 @@ public function expiryDate(mixed $value): self
*/
public function status(array|string|null $value): self
{
/** @var self */
return parent::status($value);
}

Expand Down
1 change: 0 additions & 1 deletion src/elements/db/UserQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,6 @@ public function lastLoginDate(mixed $value): self
*/
public function status(array|string|null $value): self
{
/** @var self */
return parent::status($value);
}

Expand Down
1 change: 1 addition & 0 deletions src/helpers/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ public static function phpExecutable(): ?string

if (
getenv('PHP_BINARY') === false &&
/** @phpstan-ignore-next-line */
PHP_BINARY &&
PHP_SAPI === 'cgi-fcgi' &&
str_ends_with(PHP_BINARY, 'php-cgi')
Expand Down
2 changes: 1 addition & 1 deletion src/services/Elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -3393,7 +3393,7 @@ private function _saveElementInternal(
}

// Save the element’s site settings record
if ($element->isNewForSite) {
if ($element->isNewForSite || !isset($siteSettingsRecord)) {
// First time we've saved the element for this site
$siteSettingsRecord = new Element_SiteSettingsRecord();
$siteSettingsRecord->elementId = $element->id;
Expand Down
6 changes: 3 additions & 3 deletions src/web/UrlManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ class UrlManager extends \yii\web\UrlManager
private array $_routeParams = [];

/**
* @var ElementInterface|false|null
* @var ElementInterface|false
*/
private null|false|ElementInterface $_matchedElement = null;
private ElementInterface|false $_matchedElement;

/**
* @var mixed
Expand Down Expand Up @@ -266,7 +266,7 @@ public function setMatchedElement(ElementInterface|false|null $element): void
$element = false;
}

$this->_matchedElement = $element;
$this->_matchedElement = $element ?? false;
$this->_matchedElementRoute = $element;
}

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/plugins/dist/PluginManager.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/plugins/dist/PluginManager.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/plugins/dist/css/PluginManager.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/plugins/src/PluginManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import './plugins.scss';
},

addUninstalledPluginRow: function (handle, info) {
const $table = $('#plugins');
let $table = $('#plugins');
if (!$table.length) {
$table = $('<table/>', {
id: 'plugins',
Expand Down

0 comments on commit 46853f1

Please sign in to comment.