[git] gnupg-doc - branch, preview, updated. e006a3814b7a9b072fe3d02dea62e353b7258c48

by Werner Koch cvs at cvs.gnupg.org
Thu May 18 15:24:05 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".

The branch, preview has been updated
       via  e006a3814b7a9b072fe3d02dea62e353b7258c48 (commit)
      from  83b40bcb992eb9f658f710e4c4c9e715250d88f8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e006a3814b7a9b072fe3d02dea62e353b7258c48
Author: Werner Koch <wk at gnupg.org>
Date:   Thu May 18 15:19:59 2017 +0200

    cgi: Let the preset buttons select non-recurring payments
    
    All other things are more complicated because we need to send the
    complete state.

diff --git a/cgi/procdonate.cgi b/cgi/procdonate.cgi
index 82bdddf..2d62fa2 100755
--- a/cgi/procdonate.cgi
+++ b/cgi/procdonate.cgi
@@ -1011,24 +1011,28 @@ elsif ($mode eq '') {
 elsif ($mode eq 'preset') {
     # Show a a template with certain preset values.
     $currency = 'EUR';
-    $recur = '12';
     $paytype = 'cc';
     # First dedicated payment plans.
     if ($q->param('plan') eq '12-5-eur' ) {
+        $recur = '12';
         $amount = '5';
     }
     elsif ($q->param('plan') eq '12-10-eur' ) {
+        $recur = '12';
         $amount = '10';
     }
     elsif ($q->param('plan') eq '12-20-eur' ) {
+        $recur = '12';
         $amount = '20';
     }
     elsif ($q->param('plan') eq '12-50-eur' ) {
+        $recur = '12';
         $amount = '50';
     }
     else {
         # Then look at arbitrary values
         # No checking needed.
+        $recur = '0';
         if ($q->param('s_amt') ne '') {
             $amount = int $q->param('s_amt');
         }

-----------------------------------------------------------------------

Summary of changes:
 cgi/procdonate.cgi | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list