[Tutos-commits] tutos/php/bugtracking bug.pinc, 1.93, 1.94 bug_overview.php, 1.44, 1.45 bug_select.
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Gero K. <gok...@us...> - 2009-06-29 08:55:57
|
Update of /cvsroot/tutos/tutos/php/bugtracking In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13710/php/bugtracking Modified Files: bug.pinc bug_overview.php bug_select.php Log Message: various small fixes before release Index: bug.pinc =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug.pinc,v retrieving revision 1.93 retrieving revision 1.94 diff -u -d -r1.93 -r1.94 --- bug.pinc 27 Jun 2009 17:51:12 -0000 1.93 +++ bug.pinc 29 Jun 2009 08:55:51 -0000 1.94 @@ -702,7 +702,7 @@ $this->parent = $parent; } else if (! is_object($this->parent)) { - $this->modified[] = array ("field" => "ProductP" , "old" => -1,"new" => $parent->id); + $this->modified[] = array ("field" => "ProductP" , "old" => -1,"new" => $parent); $this->parent = $parent; } @@ -1220,8 +1220,7 @@ $msg = ''; bug::obj_read($obj); if ( isset($obj->list[usebugtracking]) && (count($obj->list[usebugtracking]) > 0) ) { - @reset ($obj->list[usebugtracking]); - while ( list ($i,$f) = @each ($obj->list[usebugtracking]) ) { + foreach ($obj->list[usebugtracking] as $f ) { $msg .= $f->delete(); } } Index: bug_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_overview.php,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- bug_overview.php 26 Jun 2009 08:40:00 -0000 1.44 +++ bug_overview.php 29 Jun 2009 08:55:51 -0000 1.45 @@ -265,7 +265,7 @@ foreach ( $lang['BugClasses'] as $f => $i ) { $r .= " <option value=\"C". $f ."\">". sprintf($lang['SetTo'],$lang['BugClass'],$i) ."</option>\n"; } - $stc = getObject($current_user->dbconn,$tutos['bug_state_stc']); + $stc = getObject($this->dbconn,$tutos['bug_state_stc']); if (!is_object($stc)) { $stc = new stc(null); $stc->initByArray('BugStates',null); @@ -995,4 +995,4 @@ $l = new Bug_overview($current_user); $l->display(); $dbconn->Close(); -?> +?> \ No newline at end of file Index: bug_select.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_select.php,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- bug_select.php 22 Jun 2009 20:17:10 -0000 1.16 +++ bug_select.php 29 Jun 2009 08:55:51 -0000 1.17 @@ -83,13 +83,13 @@ $r .= "</tr><tr>\n"; $r .= $this->showfieldc(sprintf($lang['UserBugSearch'],''),0,"solverid"); $r .= '<td colspan="2"> '; - $r .= select_from_array_or_input($this->obj,"solver",$this->obj->source,1,'at'); + $r .= select_from_array_or_input($this->obj,"solver",null,1,'at'); $r .= "</td>\n"; $r .= "</tr><tr>\n"; $r .= $this->showfieldc(sprintf($lang['BugReportedFrom'],''),0,"reporterid"); $r .= '<td colspan="2"> '; - $r .= select_from_array_or_input($this->obj,"reporter",$this->obj->source,1,'at'); + $r .= select_from_array_or_input($this->obj,"reporter",null,1,'at'); $r .= "</td>\n"; } |