Fixed bug in not being able to select other interviewers in interviewer list
authorAlan Pippin <apippin@pippins.net>
Sun, 3 Oct 2010 22:46:06 +0000 (16:46 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Sun, 3 Oct 2010 22:46:06 +0000 (16:46 -0600)
inc/class.tc.inc.php
templates/default/ppi_update.tpl

index 7dea31762c1808d7d497a940997f2b17f755bcc0..26f8d7e67c06e291ecc35b690248faeb8a809edf 100644 (file)
@@ -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<br>";
                        $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<br>";
                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);
index 80a8dc4870a2deebf3a4d43ee5bfab00571526c0..e8c6cb4ef282705c49851e05522dc14669cc926c 100644 (file)
@@ -16,7 +16,7 @@
                </tr>
                <tr>
                        <td align="left"><font face="{font}"><b>Interviewer:</b>&nbsp;
-                       <select name="interviewer">
+                       <select name="interviewer" {disabled}>
 <!-- BEGIN interviewer_list -->
                        <option value={interviewer}>{interviewer_name}</option>
 <!-- END interviewer_list -->