Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
field_ui.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Dec 2016 at 13:57 UTC
Updated:
19 Jul 2017 at 12:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chr.fritschHere is the fix
Comment #3
phenaproximaI assume this will pass the tests. Preemptively RTBC.
Comment #4
alexpottLooks like we need to add an automated test for this bug/.
Comment #5
phenaproximaHere's a test. It will fail due to the bug causing malformed variables to be passed into template_preprocess_links(), but it squarely proves the fix, because the drop buttons on any Manage Fields page should never contain any empty links.
Comment #6
phenaproximaThe fail patch didn't fail?
Comment #7
phenaproximaTrying again. The fail patch definitely fails on my localhost, yet somehow it doesn't fail on Drupal CI...possibly due to a difference in error reporting.
Comment #9
phenaproximaGOOD! That is exactly the failure I was getting, and it proves the fix. This is ready for review.
Comment #10
chr.fritschNew patch that contains the fix and the test which fails in #7
Comment #12
Munavijayalakshmi commentedRerolled the patch.
Comment #13
phenaproximaVery close to done. The test needs a newline at the end of the file to appease the Git Gods, and it could do with a few comments to explain exactly what it's asserting. Otherwise, I'd mark this RTBC if I could but I contributed to the patch, so I can't :)
Comment #14
chr.fritschI fixed the newline issue and added some comments to the test.
Comment #15
chr.fritschI adjusted the patch and removed the assertions. They are not needed, because test would fail right after opening the page because of notices.
Comment #17
phenaproximaThis looks good and makes sense. The fail patch pretty well proves the fix. And it's necessary :)
Comment #18
alexpottCommitted and pushed b13cdc6 to 8.4.x and 8854fe6 to 8.3.x. Thanks!
Fixed on commit
Comment #22
wim leersThis forgot to remove
media_entity_operation_alter()which has this comment:Opened #2895857: Remove media_entity_operation_alter() as planned earlier for that.
Comment #23
wim leers