phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: projects/inc class.soprojects.inc.php,1.34,1.34.


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: projects/inc class.soprojects.inc.php,1.34,1.34.2.1
Date: Sun, 17 Mar 2002 15:57:53 -0500

Update of /cvsroot/phpgroupware/projects/inc
In directory subversions:/tmp/cvs-serv26791

Modified Files:
      Tag: Version-0_9_14-branch
        class.soprojects.inc.php 
Log Message:
fixed selection of max num in function create_projectid

Index: class.soprojects.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/projects/inc/class.soprojects.inc.php,v
retrieving revision 1.34
retrieving revision 1.34.2.1
diff -C2 -r1.34 -r1.34.2.1
*** class.soprojects.inc.php    9 Jan 2002 01:06:53 -0000       1.34
--- class.soprojects.inc.php    17 Mar 2002 20:57:50 -0000      1.34.2.1
***************
*** 689,693 ****
                        $prefix = 'P-' . $this->year . '-';
  
!                       $this->db->query("select max(num) from phpgw_p_projects 
where num like ('$prefix%')");
                        $this->db->next_record();
                        $max = 
$this->add_leading_zero(substr($this->db->f(0),-4));
--- 689,693 ----
                        $prefix = 'P-' . $this->year . '-';
  
!                       $this->db->query("select max(num) from phpgw_p_projects 
where num like ('$prefix%') and parent=0");
                        $this->db->next_record();
                        $max = 
$this->add_leading_zero(substr($this->db->f(0),-4));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]