[Tutos-commits] CVS: tutos/php/bugtracking bug_ins.php,1.9,1.10 bug_new.php,1.11,1.12
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Andreas M. <me...@us...> - 2004-05-27 08:10:00
|
Update of /cvsroot/tutos/tutos/php/bugtracking In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5897/php/bugtracking Modified Files: bug_ins.php bug_new.php Log Message: Fix: now you can choose a reporter on bug creating. If you leave it blank, the current user is default. Index: bug_ins.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_ins.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- bug_ins.php 26 May 2004 10:06:22 -0000 1.9 +++ bug_ins.php 27 May 2004 08:09:49 -0000 1.10 @@ -91,7 +91,8 @@ if ( isset($_POST['reporterid']) ) { $reporter = getObject($dbconn,$_POST['reporterid']); } else { - $msg .= sprintf($lang['Err0009'],$lang['BugReportedFrom']) ."<br>"; + #$msg .= sprintf($lang['Err0009'],$lang['BugReportedFrom']) ."<br>"; + $reporter = $current_user; } } else { if ($b->reporter->getFullName() == $_POST['reporterfn']) { @@ -215,7 +216,7 @@ } else { $b->setSolver($current_user); } - $b->setReporter($current_user); + $b->setReporter($reporter); } $b->setName($name); $b->setShort($short); Index: bug_new.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_new.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- bug_new.php 26 May 2004 10:06:22 -0000 1.11 +++ bug_new.php 27 May 2004 08:09:49 -0000 1.12 @@ -161,16 +161,9 @@ echo "</td></tr>\n"; echo "<tr>\n"; - echo $this->showfieldc($lang['BugReportedFrom']); + echo $this->showfieldc($lang['BugReportedFrom'],1); echo " <td colspan=\"1\" valign=\"top\">"; - if ( $this->obj->id > 0 ) { - select_from_array_or_input($this->obj,"reporter",$this->obj->reporter,1); - } else { - $reporter = $this->user->id; - echo $lang['BugAutoSolver'] ." "; - echo $this->user->getLink(); - $this->addHidden("reporterid",$reporter); - } + select_from_array_or_input($this->obj,"reporter",$this->obj->reporter,1); echo " </td>\n"; echo $this->showfieldc($lang['BugMedium'],0,"medium"); echo " <td>\n"; |