Revision: 2478
          https://sourceforge.net/p/mrbs/code/2478/
Author:   cimorrison
Date:     2012-10-09 14:25:11 +0000 (Tue, 09 Oct 2012)
Log Message:
-----------
Fixed bug causing the rep_day not to be checked

Modified Paths:
--------------
    mrbs/branches/improved_repeat_interface/web/edit_entry.php

Modified: mrbs/branches/improved_repeat_interface/web/edit_entry.php
===================================================================
--- mrbs/branches/improved_repeat_interface/web/edit_entry.php  2012-10-09 
13:07:42 UTC (rev 2477)
+++ mrbs/branches/improved_repeat_interface/web/edit_entry.php  2012-10-09 
14:25:11 UTC (rev 2478)
@@ -986,7 +986,7 @@
   $rep_num_weeks = 1;
   $private       = $private_default;
   $confirmed     = $confirmed_default;
-  
+
   // now initialise the custom fields
   foreach ($fields as $field)
   {
@@ -1242,7 +1242,14 @@
     break;
   }
 }
-    
+
+// Apply the string prefix to the rep_day values.  (The string prefix is 
+// necessary because we want the options array to be associative)
+for ($i=0; $i<count($rep_day); $i++)
+{
+  $rep_day[$i] = STRING_PREFIX . $rep_day[$i];
+}
+
     // REPEAT BOOKING INPUTS
     if (($edit_type == "series") && $repeats_allowed)
     {
@@ -1275,7 +1282,7 @@
       echo "<div id=\"rep_day\">\n";
       $params = array('label' => get_vocab("rep_rep_day") . ":<br>" . 
get_vocab("rep_for_weekly"),
                       'name' => 'rep_day[]',
-                      'value' => array(),
+                      'value' => $rep_day,
                       'options' => array());
       for ($i = 0; $i < 7; $i++)
       {
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to