Problem/Motivation
The links on admin/structure/display-modes/view point to the wrong path, so you always have to use the local action and select the entity type
instead of clicking on the entity type specific links.
Proposed resolution
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | interdiff.txt | 787 bytes | swentel |
| #13 | 2332709-13.patch | 1.3 KB | swentel |
| #10 | interdiff.txt | 778 bytes | swentel |
| #10 | 2332709-10.patch | 1.3 KB | swentel |
| #1 | drupal-8-core-fix-add-display-mode-link-2332709-1.patch | 643 bytes | unstatu |
Comments
Comment #1
unstatu commentedThis patch should fix the link
Comment #2
unstatu commentedComment #3
dawehnerIt would be great to have some basic test coverage here.
Comment #4
keopxHi,
Tested and works fine :)
Comment #5
alexpottCan we add an automated test - thanks!
Comment #6
swentel commentedAdded test + simplified the str_replace. Interdiff is pretty much useless.
Comment #8
dawehnerSo the bug for me was that for example "admin/structure/display-modes/view/add/node" was
"admin/structure/display-modes/entity_view/add/node" so this test seems not a proper one?
Comment #9
swentel commentedI see what you mean, but in the end we don't really care here whether the entity type is ok, we're testing whether 'entity_view_mode' becomes 'view'. I could change the test to assert for admin/structure/display-modes/view/add/entity_test_mulrev though if you want.
Comment #10
swentel commentedWith different assert now.
Comment #11
dawehnerWell right you ensure that the bug is fixed, but it would be also cool if it would actually work! Thanks for providing a good fix!
Comment #13
swentel commentedoh bah
Comment #14
alexpottCommitted db6bd07 and pushed to 8.0.x. Thanks!