From: Alan Pippin Date: Sun, 3 Oct 2010 22:46:06 +0000 (-0600) Subject: Fixed bug in not being able to select other interviewers in interviewer list X-Git-Tag: release_1_1_0~19 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Bdone_action%7D?a=commitdiff_plain;h=3f241aa189dacd37134c49231058abf868da4c03;p=eq%2F.git Fixed bug in not being able to select other interviewers in interviewer list --- diff --git a/inc/class.tc.inc.php b/inc/class.tc.inc.php index 7dea317..26f8d7e 100644 --- a/inc/class.tc.inc.php +++ b/inc/class.tc.inc.php @@ -2457,15 +2457,16 @@ class tc $indiv = $this->db2->f('individual'); $interviewer_name = $this->db2->f('name'); if($indiv == $interviewer) { - $this->t->set_var('interviewer',$interviewer . ' selected'); + $this->t->set_var('interviewer',$indiv . ' selected'); } else { - $this->t->set_var('interviewer',$interviewer); + $this->t->set_var('interviewer',$indiv); } + #print "indiv: $indiv interviewer: $interviewer
"; $this->t->set_var('interviewer_name',$interviewer_name); $this->t->set_var('eqpresppi_checked','checked'); $this->t->fp('int_list','interviewer_list',True); } - + #print "selected interviewer: $interviewer
"; if($action == 'save') { $notes = get_var('notes',array('POST')); $this->db->query("UPDATE tc_interview set " . @@ -2782,9 +2783,9 @@ class tc $indiv = $this->db2->f('individual'); $interviewer_name = $this->db2->f('name'); if($indiv == $interviewer) { - $this->t->set_var('interviewer',$interviewer . ' selected'); + $this->t->set_var('interviewer',$indiv . ' selected'); } else { - $this->t->set_var('interviewer',$interviewer); + $this->t->set_var('interviewer',$indiv); } $this->t->set_var('interviewer_name',$interviewer_name); $this->t->fp('int_list','interviewer_list',True); diff --git a/templates/default/ppi_update.tpl b/templates/default/ppi_update.tpl index 80a8dc4..e8c6cb4 100644 --- a/templates/default/ppi_update.tpl +++ b/templates/default/ppi_update.tpl @@ -16,7 +16,7 @@ Interviewer:  -