- πΊπΈUnited States mrweiner
Here is a simple patch based on the suggestion in #6 that only sets the weight if it is not yet set. Not sure of unintended consequences of this but we'll see if tests choke.
- Status changed to Needs review
about 2 years ago 10:18pm 14 February 2023 - Status changed to Needs work
about 2 years ago 11:13pm 19 February 2023 - πΊπΈUnited States smustgrave
This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β as a guide.
As a bug this will need a test case.
Also issue summary update. Recommend using the default template.
- π¬π§United Kingdom alexharries
+1 to the patch at #13 - this issue is preventing me from adjusting the order of elements on the taxonomy term edit form.
Thank you @mrweiner :)
/A
- First commit to issue fork.
- π©πͺGermany ammaletu Bonn, Germany
I just ran into this bug when I was trying to resort form elements and it seemed really simple. I created a branch, pushed the patch from #13 and added a simple test case. The test failed without the patch and succeeded with it.
This is my first time contributing code with a branch, so help me out a bit with the next steps. :-) #15 mentioned an issue summary update. Not sure what is missing there. Also, does this need a change record? And then set it back to "needs review"?!
- Status changed to Needs review
about 1 year ago 5:13pm 6 February 2024 - π©πͺGermany ammaletu Bonn, Germany
Ok, I tried to put the previous issue summary inside the issue summary template and added some lines. I have removed the two tags and set this to "needs review" so that somebody can have another look at it.
- Status changed to Needs work
about 1 year ago 3:37pm 12 February 2024 - πΊπΈUnited States smustgrave
Opened the MR for the tests to run, but appears to have some linting issues.
- Status changed to Needs review
about 1 year ago 6:58pm 16 February 2024 - Status changed to Needs work
about 1 year ago 10:42pm 19 February 2024 - πΊπΈUnited States smustgrave
Applied some simple suggestions from myself for return types.
Ran the test-only feature and it passed, so seems the test needs to be tweaked slightly.
- π©πͺGermany ammaletu Bonn, Germany
I had another look at the test I wrote and fixed some errors. The test looked OK, but wasn't actually testing anything because of an error in the routing configuration. To me, this looks OK now and I verified with a real module and hook that the original problem still shows up in Drupal and was not fixed in some way.
But still, the test succeeds even without the fix in `core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php`. I'm a bit lost why that is. Is something missing from the test form setup so that the bug is not triggered? Maybe somebody else has an idea? For now, this remains on "Needs work".