Fixed bug in querying eqpres PPI history in scheduling tool. release_0_3_1
authorAlan J. Pippin <ajp@server.pippins.net>
Mon, 7 Jul 2008 04:52:46 +0000 (22:52 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Mon, 7 Jul 2008 04:52:46 +0000 (22:52 -0600)
inc/class.eq.inc.php

index dd8cff777d6393019e1a1a319dee087b0a991949..7f0d5a6e887671fb744d508cd3468d9b6aaf1508 100644 (file)
@@ -1599,7 +1599,7 @@ class eq
          $this->db2->query($sql,__LINE__,__FILE__);
          
          if(!$this->db2->next_record()) {
-           $sql = "SELECT * FROM eq_ppi WHERE elder=" . $id . " ORDER BY date DESC";
+           $sql = "SELECT * FROM eq_ppi WHERE elder=" . $id . " AND eqpresppi=1 ORDER BY date DESC";
            $this->db->query($sql,__LINE__,__FILE__);
            if($this->db->next_record()) { $date = $this->db->f('date'); } else { $date = ""; }
            $link_data['menuaction'] = 'eq.eq.ppi_update';