Problem/Motivation
Content rendered in Full may be previewed by clicking the 'Preview' button. However this does not appear to properly render a Flag on the Full content type.
Steps to recreated:
- Create a flag type.
- Add the flag type to the default or 'Full' content display.
- Add a node on the node add page for a node that has 'Preview' enabled.
- Click 'Preview'.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3151909_2.patch | 2.5 KB | nejcramsak |
Issue fork flag-3151909
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- show-in-preview
changes, plain diff MR !176
- 3151909-flag-does-not
changes, plain diff MR !150
Comments
Comment #2
nejcramsak commentedHi, i created a patch for this, the flag appears on preview but doesn't have any functionality as the entity is not yet saved and cannot be flagged.
Comment #3
brooke_heaton commented@nejcramsak Sorry to use this issue to ask, but do you have any insight as to why an Entity Reference to a node does not appear in preview?
Comment #4
tr commented@nejcramsak: When you post a patch you need to set the issue status to "Needs review" so that the testbot will run tests on your patch.
This issue should also have a test case to demonstrate the problem and prove the patch fixes it.
Comment #5
ivnishComment #11
deaom commentedTo many test issues to resolve on the 8x branch that were probably already resolved in 5x, so cherry picked the commit from 8.x to 5.x and opened a new MR. The existing tests are passing. Still needs a test to showcase the change is working, so leaving status as is.
Comment #12
deaom commentedAdded a simple test that verifies that the flag link is visible on the preview page. Ready for review.
Comment #14
ivnishComment #16
ivnish