diff --git a/CHANGELOG.md b/CHANGELOG.md index c5d14bfa9..5f4b6e136 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ Changelog ========= +## 5.1.24 + +Released: 2023-02-19 + +### 🐛 Bug fixes + + - Fixed thumbnail sizes, which did not fit because of a incomplete RegEx replace #3411 + - Fix default thumbnail crop config #3403 + - Update `UserFixtures.php` + - Strict use of strings as keys in TaxonomyFixtures #3415 + + ## 5.1.23 Released: 2023-02-03 diff --git a/assets/js/version.js b/assets/js/version.js index cfbe53ccf..1b7f33755 100644 --- a/assets/js/version.js +++ b/assets/js/version.js @@ -1,2 +1,2 @@ // generated by genversion -export const version = '5.1.99.12'; +export const version = '5.1.99.13'; diff --git a/package.json b/package.json index 8951b084d..c595b63ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bolt", - "version": "5.1.99.12", + "version": "5.1.99.13", "homepage": "https://boltcms.io", "author": "Bob den Otter (https://boltcms.io)", "license": "MIT", diff --git a/src/DataFixtures/TaxonomyFixtures.php b/src/DataFixtures/TaxonomyFixtures.php index 232db6058..3b00b08fc 100644 --- a/src/DataFixtures/TaxonomyFixtures.php +++ b/src/DataFixtures/TaxonomyFixtures.php @@ -51,13 +51,13 @@ private function loadTaxonomies(ObjectManager $manager): void foreach ($options as $key => $value) { $taxonomy = $this->taxonomyRepository->factory( $taxonomyDefinition['slug'], - $key, + (string) $key, $value, $taxonomyDefinition['has_sortorder'] ? $order++ : 0 ); $manager->persist($taxonomy); - $reference = 'taxonomy_' . $taxonomyDefinition['slug'] . '_' . Str::slug($key); + $reference = 'taxonomy_' . $taxonomyDefinition['slug'] . '_' . Str::slug((string) $key); $this->addReference($reference, $taxonomy); } } diff --git a/src/DataFixtures/UserFixtures.php b/src/DataFixtures/UserFixtures.php index 1d2238581..2c0a4c544 100644 --- a/src/DataFixtures/UserFixtures.php +++ b/src/DataFixtures/UserFixtures.php @@ -92,7 +92,7 @@ private function getUserData(): array [ 'displayname' => 'Admin', 'username' => 'admin', - 'password' => $this->append ? Str::generatePassword(10) : 'admin%1', + 'password' => $this->append ? Str::generatePassword(12) : 'admin%1', 'email' => 'admin@example.org', 'roles' => ['ROLE_DEVELOPER', 'ROLE_WEBSERVICE'], 'status' => UserStatus::ENABLED, @@ -100,40 +100,42 @@ private function getUserData(): array [ 'displayname' => 'Crazy Steve', 'username' => 'steve', - 'password' => $this->append ? Str::generatePassword(10) : 'steve%1', + 'password' => Str::generatePassword(12), 'email' => 'henkie@example.org', 'roles' => ['ROLE_EDITOR', 'ROLE_EXTRA_1', 'ROLE_EXTRA_2', 'ROLE_USER_FRONTEND_GROUP1'], + 'status' => UserStatus::DISABLED, ], [ 'displayname' => 'Jane Doe', 'username' => 'jane_chief', - 'password' => $this->append ? Str::generatePassword(10) : 'jane%1', + 'password' => Str::generatePassword(12), 'email' => 'jane_admin@example.org', 'roles' => ['ROLE_CHIEF_EDITOR'], - 'status' => UserStatus::ENABLED, + 'status' => UserStatus::DISABLED, ], [ 'displayname' => 'Tom Doe', 'username' => 'tom_admin', - 'password' => $this->append ? Str::generatePassword(10) : 'tom%1', + 'password' => Str::generatePassword(12), 'email' => 'tom_admin@example.org', 'roles' => ['ROLE_ADMIN'], + 'status' => UserStatus::DISABLED, ], [ 'displayname' => 'John Doe', 'username' => 'john_editor', - 'password' => $this->append ? Str::generatePassword(10) : 'john%1', + 'password' => Str::generatePassword(12), 'email' => 'john_user@example.org', 'roles' => ['ROLE_EDITOR'], - 'status' => UserStatus::ENABLED, + 'status' => UserStatus::DISABLED, ], [ 'displayname' => 'Eddie Enduser', 'username' => 'eddie', - 'password' => $this->append ? Str::generatePassword(10) : 'eddie%1', + 'password' => Str::generatePassword(12), 'email' => 'eddie@example.org', 'roles' => ['ROLE_USER'], - 'status' => UserStatus::ENABLED, + 'status' => UserStatus::DISABLED, ], ]; } diff --git a/src/Version.php b/src/Version.php index ae58359c0..f3667ab72 100644 --- a/src/Version.php +++ b/src/Version.php @@ -23,7 +23,7 @@ final class Version * Stable — 3.0.0 * Development — 3.1.0 alpha 1 */ - public const VERSION = '5.2.0 beta 12'; + public const VERSION = '5.2.0 beta 13'; public const CODENAME = ''; /**