Patch (to be ported)
Project:
Flag Friend
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2011 at 19:36 UTC
Updated:
7 Apr 2012 at 15:48 UTC
Jump to comment: Most recent file
Comments
Comment #1
sirkitree commentedMakes sense.
Comment #2
shawn dearmond commentedHere's a patch that adds the deny link within hook_user_view().
Comment #3
sirkitree commentedI've changed the order of the logic a bit in this but it still has the desired effect.
I'm loading the flag at the beginning now. It was originally inside of the first 'if' statement to avoid loading the flag at all if we didn't have to. But since we're loading it in the 'else' as well, might as well just load it all.
I then moved the second if up before the first because the 'empty()' and 'isset()' should be checked in both cases I think.
Comment #4
sirkitree commentedNote: we should expand the user test case to check for this new Deny link.
Comment #5
sirkitree commentedSame as patch in #4 but adds in the test for the Deny link.
Comment #6
shawn dearmond commentedExcellent. I like the change in the logic. And the addition to the test was definitely a plus.
For some reason, I got a fatal error when trying to apply the patch with Git. I used "patch -p0 < ..." instead and it applied fine, and there was much rejoicing.
Looks good! Thanks!
Comment #7
sirkitree commentedAwesome, committed.
http://drupalcode.org/project/flag_friend.git/commitdiff/64edf2735e98acb...
I use the command
git diff --relative --no-prefixwhich makes it compatible withpatch -p0 < .... The patches you've been giving me I must define what file to apply the patch to. What commands have you been using?Comment #9
Aamuktha commentedHi Buddies,
This is what I'm exactly searching for..But i'm using Flag friend 6.x-1.0 version.so i couldn't find any match between flag_friend. module file and patch file.Could anyone help me in this?.Plz tell me ASAP.
Thanks in advance.
Comment #10
sirkitree commentedMarking as need ported to 6.x-1.x