[Rt-commit] r10773 - in rt/branches/3.999-DANGEROUS/html: Elements Elements/GnuPG

ruz at bestpractical.com ruz at bestpractical.com
Fri Feb 8 17:19:42 EST 2008


Author: ruz
Date: Fri Feb  8 17:19:41 2008
New Revision: 10773

Modified:
   rt/branches/3.999-DANGEROUS/html/Elements/GnuPG/SelectKeyForEncryption
   rt/branches/3.999-DANGEROUS/html/Elements/GnuPGKeyIssues
   rt/branches/3.999-DANGEROUS/html/Prefs/Other.html

Log:
* fix default argument

Modified: rt/branches/3.999-DANGEROUS/html/Elements/GnuPG/SelectKeyForEncryption
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/GnuPG/SelectKeyForEncryption	(original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/GnuPG/SelectKeyForEncryption	Fri Feb  8 17:19:41 2008
@@ -62,7 +62,7 @@
 my %res = RT::Crypt::GnuPG::get_keys_for_encryption($email);
 # move the preferred key to the top of the list
 my @keys = map {
-               $_->{'fingerprint'} eq ( $Default || '' )
+               $_->{'fingerprint'} eq ( $default || '' )
                    ?  do { $d = $_; () }
                    : $_
            }
@@ -76,6 +76,6 @@
 <%ARGS>
 $name         => 'preferred_key'
 $email => undef
-$Default      => undef
+$default      => undef
 </%ARGS>
 

Modified: rt/branches/3.999-DANGEROUS/html/Elements/GnuPGKeyIssues
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Elements/GnuPGKeyIssues	(original)
+++ rt/branches/3.999-DANGEROUS/html/Elements/GnuPGKeyIssues	Fri Feb  8 17:19:41 2008
@@ -77,7 +77,7 @@
 <& /Elements/GnuPG/SelectKeyForEncryption,
     name         => 'UseKey-'. $issue->{'email'},
     email => $issue->{'email'},
-    Default      => ( $issue->{'user'}? $issue->{'user'}->preferred_key : undef ),
+    default      => ( $issue->{'user'}? $issue->{'user'}->preferred_key : undef ),
 &>
 </li>
 % }

Modified: rt/branches/3.999-DANGEROUS/html/Prefs/Other.html
==============================================================================
--- rt/branches/3.999-DANGEROUS/html/Prefs/Other.html	(original)
+++ rt/branches/3.999-DANGEROUS/html/Prefs/Other.html	Fri Feb  8 17:19:41 2008
@@ -70,13 +70,7 @@
 
 % if ( RT->config->get('GnuPG')->{'enable'} ) {
 <&|/Widgets/TitleBox, title => _( 'Cryptography' ) &>
-Preferred key: <& /Elements/GnuPG/SelectKeyForEncryption, email => $user_object->email, Default => $user_object->preferred_key &>
-</&>
-% }
-
-% if ( RT->config->get('GnuPG')->{'enable'} ) {
-<&|/Widgets/TitleBox, title => _( 'Cryptography' ) &>
-Preferred key: <& /Elements/SelectKey, email => $user_object->email, Default => $user_object->preferred_key &>
+Preferred key: <& /Elements/GnuPG/SelectKeyForEncryption, email => $user_object->email, default => $user_object->preferred_key &>
 </&>
 % }
 


More information about the Rt-commit mailing list