[Rt-commit] rt branch, 4.4-trunk, updated. rt-4.4.4-315-g350bdbb9aa

? sunnavy sunnavy at bestpractical.com
Thu Apr 1 17:13:13 EDT 2021


The branch, 4.4-trunk has been updated
       via  350bdbb9aafd4846a7782955b5c689bca051485a (commit)
      from  2c3a518cf2fc2aac087877baa99caf80e517e596 (commit)

Summary of changes:
 share/html/Prefs/Other.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 350bdbb9aafd4846a7782955b5c689bca051485a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Apr 2 03:47:18 2021 +0800

    Show "Preferred GnuPG key" input only if GnuPG is enabled
    
    If SMIME is enabled but GnuPG is not, showing the input is wrong.

diff --git a/share/html/Prefs/Other.html b/share/html/Prefs/Other.html
index e2526dbd91..05a8cbcd7b 100644
--- a/share/html/Prefs/Other.html
+++ b/share/html/Prefs/Other.html
@@ -67,7 +67,7 @@
 </&>
 % }
 
-% if ( RT->Config->Get('Crypt')->{'Enable'} ) {
+% if ( RT->Config->Get('Crypt')->{'Enable'} && RT->Config->Get('GnuPG')->{'Enable'} ) {
 <&|/Widgets/TitleBox, title => loc( 'Cryptography' ) &>
 <&|/l&>Preferred GnuPG key</&>: <& /Elements/Crypt/SelectKeyForEncryption, Name => 'PreferredKey', EmailAddress => $UserObj->EmailAddress, Default => $UserObj->PreferredKey, Protocol => 'GnuPG' &>
 </&>

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


More information about the rt-commit mailing list