Closed (fixed)
Project:
Flag
Version:
5.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2018 at 21:50 UTC
Updated:
7 Jan 2026 at 06:24 UTC
Jump to comment: Most recent

Comments
Comment #2
gábor hojtsyBTW we are trying to build the "My favorite sessions" exposed filter for Drupal Europe daily schedule :)
Comment #3
joachim commented1. Argh, I thought this had been fixed.
2. Argh, why are you using Flag? The use case is right, but Flag is ***NOT READY FOR PRODUCTION***. There are a ton of issues, including major issues around render caching and performance.
Comment #4
joachim commentedAre you sure you have the latest version?
In FlagViewsFilter:
Comment #5
joachim commentedComment #6
Y Pham commentedDefault value is set 1. Use this patch to change to 'All' value.
http://prntscr.com/krjpnf
Comment #7
ptmkenny commentedChanging status to "Needs work" because #6 provides a solution but not a formal patch that can be tested on drupal.org.
Comment #8
ivnishComment #11
mahima_mathur23 commentedResolved all PHPCS Issues.
Comment #12
ivnishComment #13
ivnishComment #14
deaom commentedLike mentioned in comment #4 this is already part of the module and works. When filter is exposed to visitors, the "required " check box needs to be removed. If the filter is not exposed to visitors, the default value is set to true. Don't think that changing it to All does anything.
The thing that this MR changes is the default value is no longer true, but All. Everything else stays the same. So not sure if this needs to be merged at all. Will rebase branch in case the desire is there to merge it.
Comment #15
ivnishStill needs tests
Comment #16
deaom commentedAdded a test that sets the exposed filter for flagging and checked that the - Any - options is visible on the actual page. Ready for review.
Comment #17
ivnishComment #18
ivnish@deaom I tested this patch manually. It doesn't work as expected. When I selected "All" I get flagged nodes anyway. I think needs to extend the test and check which nodes were filtered
Comment #19
deaom commentedWhen you select All you should get flagged and unflagged, so not quite understanding what does not work when manually testing. Will try and extend the test.
Comment #20
deaom commentedUpdated the test to test that flagged and unflagged content is listed/displayed, now that Drupal is back, tests also passing. Ready for review.
Comment #21
ivnishI forgot to remove "status" filter like this
(facepalm)
Tested again, it works as expected
Comment #23
ivnish