From: Alan Pippin <apippin@pippins.net>
Date: Wed, 27 Oct 2010 00:36:11 +0000 (-0600)
Subject: Merge branch 'owenleonard/ht_sandbox' of git@github.com:apippin/tc into owenleonard... 
X-Git-Tag: release_1_1_0^2~2^2~1
X-Git-Url: http://git.pippins.net/%7Bedit%7D?a=commitdiff_plain;h=e0b83b187067cb6b9b7ecfbdd65387c3fed0c237;p=eq%2F.git

Merge branch 'owenleonard/ht_sandbox' of git@github.com:apippin/tc into owenleonard/ht_sandbox
---

e0b83b187067cb6b9b7ecfbdd65387c3fed0c237
diff --cc inc/class.tc.inc.php
index 2b34526,bcf18e2..c3a2b79
--- a/inc/class.tc.inc.php
+++ b/inc/class.tc.inc.php
@@@ -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; }