Merge branch 'owenleonard/ht_sandbox' of git@github.com:apippin/tc into owenleonard...
authorAlan Pippin <apippin@pippins.net>
Wed, 27 Oct 2010 00:36:11 +0000 (18:36 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Wed, 27 Oct 2010 00:36:11 +0000 (18:36 -0600)
1  2 
inc/class.tc.inc.php

index 2b34526c05a7bc9abb6a0fb9dc1404051daa9ea5,bcf18e26a79ba6cfb9ee1f9b721ed95a6b287e56..c3a2b7971e8d49c6315d9d12ad9d45d74b96871b
@@@ -691,10 -679,9 +691,10 @@@ class t
                                    $this->nextmatchs->template_alternate_row_color(&$this->t);
                                    $sandbox_table_data .= "<tr bgcolor=". $this->t->get_var('tr_color') .">";
                                        $sandbox_table_data .= "<td align=\"Left\" width=\"1000\">$family_name</td>";
 -                                      
 +                                  $switch_case_list .= "  $(\"#assignedFamilies option[value='".$family."']\").attr(\"selected\",true);\n";
 +                                
                                        # get 12 months visit data for given family
-                                       for($m=$this->sandbox_stats_num_months; $m >= 0; $m--) {
+                                       for($m=$this->sandbox_stats_num_months; $m > 0; $m--) {
                                                $month = $this->current_month - $m;
                                                $year = $this->current_year;
                                                if($month <= 0) { $remainder = $month; $month = 12 + $remainder; $year=$year-1; }