Changeset:
        f9eb27fc309e
        
https://sourceforge.net/p/mrbs/hg-code/ci/f9eb27fc309ec44a06423cbc2d9de1a5252697c5
Author:
        Campbell Morrison <[email protected]>
Date:
        Fri Nov 04 14:14:20 2016 +0000
Log message:

Made the default setting for the "Do not send email" checkbox a configuration 
variable

diffstat:

 web/edit_entry.php         |  4 +---
 web/systemdefaults.inc.php |  3 +++
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 1be9c48d8f9c -r f9eb27fc309e web/edit_entry.php
--- a/web/edit_entry.php        Sat Oct 29 09:50:35 2016 +0100
+++ b/web/edit_entry.php        Fri Nov 04 14:14:20 2016 +0000
@@ -1365,11 +1365,9 @@
 {
   echo "<div id=\"div_no_mail\">\n";
   
-  $no_mail_default = FALSE;
-  
   $params = array('label'    => get_vocab("no_mail") . ":",
                   'name'     => 'no_mail',
-                  'value'    => $no_mail_default);
+                  'value'    => $mail_settings['no_mail_default']);
   generate_checkbox($params);
 
   echo "</div>\n";
diff -r 1be9c48d8f9c -r f9eb27fc309e web/systemdefaults.inc.php
--- a/web/systemdefaults.inc.php        Sat Oct 29 09:50:35 2016 +0100
+++ b/web/systemdefaults.inc.php        Fri Nov 04 14:14:20 2016 +0000
@@ -1001,6 +1001,9 @@
 // change is being made, or many bookings are being made at the beginning of a 
term or season.
 $mail_settings['allow_no_mail']        = FALSE;
 $mail_settings['allow_admins_no_mail'] = FALSE;  // Ignored if 'allow_no_mail' 
is TRUE
+$mail_settings['no_mail_default'] = FALSE; // Default value for the 'no mail' 
checkbox.  
+                                           // TRUE for checked (ie don't send 
mail),
+                                           // FALSE for unchecked (ie do send 
mail)
 
 
 // WHAT TO EMAIL

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to