testlink/lib/functions testplan.class.php,1.31,1.32

0 views
Skip to first unread message

Schlundus

unread,
May 24, 2007, 3:49:45 PM5/24/07
to asi...@users.sourceforge.net
Update of /cvsroot/testlink/testlink/lib/functions
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv29266/lib/functions

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;

Reply all
Reply to author
Forward
0 new messages