The Needs Review Queue Bot → tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇮🇳India ranjith_kumar_k_u Kerala
#5 failed to apply on 10.1x
error: patch failed: core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php:72
error: core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php: patch does not apply - Status changed to Needs review
over 2 years ago 1:58pm 6 April 2023 - Status changed to Needs work
over 2 years ago 4:07pm 6 April 2023 - 🇺🇸United States smustgrave
Tried testing this without the patch by going to node/add
I updated the labels multiple times to change the order and each time the order updates correctly.Not entirely clear what this could be fixing? Could someone elaborate please.
- Status changed to RTBC
over 2 years ago 9:59pm 6 April 2023 - 🇺🇸United States smustgrave
Nothing the change actually on admin/structure/types screen.
- last update
about 2 years ago Patch Failed to Apply - last update
about 2 years ago Patch Failed to Apply - last update
about 2 years ago Patch Failed to Apply - last update
about 2 years ago Patch Failed to Apply - last update
about 2 years ago Patch Failed to Apply - last update
about 2 years ago Patch Failed to Apply - last update
about 2 years ago Patch Failed to Apply - last update
about 2 years ago Patch Failed to Apply - Status changed to Needs work
about 2 years ago 8:36am 2 May 2023 - 🇬🇧United Kingdom catch
+++ b/core/lib/Drupal/Core/Entity/Controller/EntityController.php @@ -340,22 +340,29 @@ protected function doGetEntity(RouteMatchInterface $route_match, EntityInterface */ protected function loadBundleDescriptions(array $bundles, EntityTypeInterface $bundle_entity_type) { - if (!$bundle_entity_type->entityClassImplements(EntityDescriptionInterface::class)) { - return $bundles; - } $bundle_names = array_keys($bundles);
I don't think the early return should have been changed here. If for some reason we need to sort in this case to, it might need to happen separately.
- First commit to issue fork.
- 🇦🇺Australia acbramley
This will be required for 📌 Remove BlockContentController::Add Needs work
- Merge request !12395Issue #3196798: Fix EntityController::addPage so bundles are sorted by label and not ID → (Closed) created by acbramley
- 🇺🇸United States smustgrave
Ran the test-only job here https://git.drupalcode.org/issue/drupal-3196798/-/jobs/5609439 which gave
1) Drupal\Tests\system\Functional\Entity\EntityAddUITest::testAddPageWithBundleEntities Behat\Mink\Exception\ResponseTextException: The pattern /Aaa Test2 label(.*)Test label/ was not found anywhere in the text of the current page. /builds/issue/drupal-3196798/vendor/behat/mink/src/WebAssert.php:907 /builds/issue/drupal-3196798/vendor/behat/mink/src/WebAssert.php:329 /builds/issue/drupal-3196798/core/modules/system/tests/src/Functional/Entity/EntityAddUITest.php:79 FAILURES!
Awesome use of extending an existing test!
Fix to core/lib/Drupal/Core/Entity/Controller/EntityController.php seems pretty straight forward with the uasort. No objections
LGTM
-
larowlan →
committed 3d929061 on 11.2.x
Issue #3196798 by acbramley, juhog, ranjith_kumar_k_u, paulocs,...
-
larowlan →
committed 3d929061 on 11.2.x
-
larowlan →
committed 025184ce on 11.x
Issue #3196798 by acbramley, juhog, ranjith_kumar_k_u, paulocs,...
-
larowlan →
committed 025184ce on 11.x
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Committed to 11.x and backported to 11.2.x as there is minimal risk of disruption here.
Thanks folks
Automatically closed - issue fixed for 2 weeks with no activity.