Patch (to be ported)
Project:
lm_paypal
Version:
7.x-1.x-dev
Component:
LM Paypal Subscriptions
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2008 at 19:00 UTC
Updated:
6 Jun 2012 at 21:56 UTC
Jump to comment: Most recent file
Comments
Comment #1
lyricnz commentedTry attached patch. See http://drupal.org/node/60108 (how to apply patches). You could do similar for donations, paid adverts etc. I wouldn't apply this patch to CVS without making the behavior optional, which I don't have time to do right now.
Comment #2
rmassamiri commentedThanks for the patch. I probably didn't do this right, but I tried following your instructions and here is what I did and received the following...
.../lm_paypal$ patch -p3 --dry-run < lm_paypal-hidesubscriptions.patch
missing header for unified diff at line 10 of patch
can't find file to patch at input line 10
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|? lm_paypal-plurals.patch
|? lm_paypal.test
|Index: lm_paypal_subscriptions.module
|===================================================================
|RCS file: /cvs/drupal-contrib/contributions/modules/lm_paypal/lm_paypal_subscriptions.module,v
|retrieving revision 1.33.4.15
|diff -u -r1.33.4.15 lm_paypal_subscriptions.module
|--- lm_paypal_subscriptions.module 6 Nov 2008 20:37:35 -0000 1.33.4.15
|+++ lm_paypal_subscriptions.module 8 Nov 2008 00:19:59 -0000
--------------------------
File to patch: lm_paypal-hidesubscriptions.patch
patching file lm_paypal-hidesubscriptions.patch
Hunk #1 FAILED at 2279.
1 out of 1 hunk FAILED -- saving rejects to file lm_paypal-hidesubscriptions.patch.rem
Comment #3
lyricnz commentedUse "patch -p0" (from the lm_paypal directory). The example I posted in another issue was for a slightly malformed patch created from a different directory.
Comment #4
rmassamiri commentedGreat. Thanks. That worked.
Comment #5
marcoBauli commentedtotally agree on this ;)
attached is the patch for 5.x too. thank you
Comment #6
marc angles commentedThis patch seems to break the cache rebuild of the menu.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT p.perm FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () dans /srv/aegir/drupal-6.14-1.0-prod/modules/user/user.module à la ligne 502.
Comment #7
john franklin commentedApplied to 6.x-1.x and 6.x-2.x. Patch for 7.x-1.x attached for review.
Comment #8
fehin commentedCan we also have this on a separate page or block instead of only on the user profile page? Some of us override the profile page with panel. I opened an issue about it here http://drupal.org/node/1551010.