Mailing List Archive

rt branch, 4.0/hide-email-frequency-pref, created. rt-4.0.6-126-g19b9228
The branch, 4.0/hide-email-frequency-pref has been created
at 19b9228906e6ba50cedf58464b445a4851e1c65f (commit)

- Log -----------------------------------------------------------------
commit 19b9228906e6ba50cedf58464b445a4851e1c65f
Author: sunnavy <sunnavy@bestpractical.com>
Date: Fri Jun 1 03:10:57 2012 +0800

hide EmailFrequency pref if RecordOutgoingEmail is off

Because email digest requires RecordOutgoingEmail
also documented this in config

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 7dd2c90..54fb499 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -615,6 +615,9 @@ Set($NotifyActor, 0);
By default, RT records each message it sends out to its own internal
database. To change this behavior, set C<$RecordOutgoingEmail> to 0

+If this is disabled, user's "Email delivery"(i.e. EmailFrequency) preference
+will be ignored.
+
=cut

Set($RecordOutgoingEmail, 1);
diff --git a/share/html/Prefs/Other.html b/share/html/Prefs/Other.html
index 9f7e04a..b5d3edd 100644
--- a/share/html/Prefs/Other.html
+++ b/share/html/Prefs/Other.html
@@ -53,6 +53,7 @@
% foreach my $section( RT->Config->Sections ) {
<&|/Widgets/TitleBox, title => loc( $section ) &>
% foreach my $option( RT->Config->Options( Section => $section ) ) {
+% next if $option eq 'EmailFrequency' && !RT->Config->Get('RecordOutgoingEmail');
% my $meta = RT->Config->Meta( $option );
<& $meta->{'Widget'},
Default => 1,

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit