Closed (fixed)
Project:
Flag
Version:
8.x-4.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Jun 2017 at 23:23 UTC
Updated:
4 Nov 2017 at 13:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
socketwench commentedComment #3
andileco commentedThe following was helpful for me:
Comment #4
maaty388 commentedComment #5
andileco commentedWhy was this marked "Works as designed"?
Comment #6
maaty388 commentedThis custom code works
Comment #7
andileco commentedThanks! I changed back to needs work, so that I can create a patch. Then we would move to "Needs Review" or "Ready to be committed" when that's posted.
Comment #8
andileco commentedPatch attached.
Comment #10
martin107 commentedWe have a branch blocker at the moment ....
I am a bit busy at the moment .. I am trying to clear it as part of #2898502: Convert/Modernise FlagContextualLinksTest
sorry time is pressing for me at the moment...perhaps we need to open an isolated branch blocker issue.
Comment #11
jantoine commentedWith the branch blocker issue now resolved, should the status of this issue be updated?
Comment #12
martin107 commentedThanks for the prompt ... patch still applies - Moving to needs review to trigger testbot ... which fingers crossed should be green.
Comment #14
socketwench commentedYep, still passes!
Thanks everyone!
Comment #15
pradeepjha commentedAfter applying above patch. I was able to use follow link in ajaxified way but got following error.
The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\flag\Plugin\views\field\FlagViewsLinkField::renderLink() must implement interface Drupal\Core\Entity\EntityInterface, null given, called in /home/**/**/html/modules/contrib/flag/src/Plugin/views/field/FlagViewsLinkField.php on line 76 in Drupal\flag\Plugin\views\field\FlagViewsLinkField->renderLink() (line 114 of modules/contrib/flag/src/Plugin/views/field/FlagViewsLinkField.php).
Comment #16
socketwench commented@pradeepjha I created a follow up issue here: #2917836: Null passed to AJAXified FlagViewsLinkField::renderLink()