Modified Files:
testplan.class.php
Log Message:
Used last build for Not_run report
Index: testplan.class.php
===================================================================
RCS file: /cvsroot/testlink/testlink/lib/functions/testplan.class.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** testplan.class.php 21 May 2007 06:44:17 -0000 1.31
--- testplan.class.php 24 May 2007 19:49:42 -0000 1.32
***************
*** 840,848 ****
rev :
*/
! function get_max_build_id($id)
{
$sql = " SELECT MAX(builds.id) AS maxbuildid
FROM builds WHERE builds.testplan_id = {$id}";
!
$recordset = $this->db->get_recordset($sql);
$maxBuildID = 0;
--- 840,857 ----
rev :
*/
! function get_max_build_id($id,$active = null,$open = null)
{
$sql = " SELECT MAX(builds.id) AS maxbuildid
FROM builds WHERE builds.testplan_id = {$id}";
!
! if(!is_null($active))
! {
! $sql .= " AND active = " . intval($active) . " ";
! }
! if( !is_null($open) )
! {
! $sql .= " AND open = " . intval($open) . " ";
! }
!
$recordset = $this->db->get_recordset($sql);
$maxBuildID = 0;