cvs: pearweb /public_html/bugs bug.php
| From: | David Coallier | Date: | Sun, 25 Mar 2007 00:13:27 +0000 |
| Subject: | cvs: pearweb /public_html/bugs bug.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-45405@lists.php.net to get a copy of this message | ||
davidc Sun Mar 25 00:13:27 2007 UTC
Modified files:
/pearweb/public_html/bugs bug.php
Log:
- So we see the roadmaps even in view not only in edit:
- Feature for #10464
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/bug.php?r1=1.140&r2=1.141&diff_format=u
Index: pearweb/public_html/bugs/bug.php
diff -u pearweb/public_html/bugs/bug.php:1.140 pearweb/public_html/bugs/bug.php:1.141
--- pearweb/public_html/bugs/bug.php:1.140 Thu Mar 22 19:33:33 2007
+++ pearweb/public_html/bugs/bug.php Sun Mar 25 00:13:27 2007
@@ -15,7 +15,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: bug.php,v 1.140 2007/03/22 19:33:33 cellog Exp $
+ * @version $Id: bug.php,v 1.141 2007/03/25 00:13:27 davidc Exp $
*/
/*
@@ -623,6 +623,65 @@
<th class="details">OS:</th>
<td><?php echo htmlspecialchars($bug['php_os']) ?></td>
</tr>
+<?php
+ $link = Bug_DataObject::bugDB('bugdb_roadmap_link');
+ $link->id = $id;
+ $link->find(false);
+ $links = array();
+ while ($link->fetch()) {
+ $links[$link->roadmap_id] = true;
+ }
+ $db = Bug_DataObject::bugDB('bugdb_roadmap');
+ $db->package = $bug['package_name'];
+ $db->orderBy('releasedate DESC');
+ if ($db->find(false)) {
+ while ($db->fetch()) {
+ $released = $dbh->getOne('SELECT releases.id
+ FROM packages, releases, bugdb_roadmap b
+ WHERE
+ b.id=? AND
+ packages.name=b.package AND releases.package=packages.id AND
+ releases.version=b.roadmap_version',
+ array($db->id));
+ if (isset($links[$db->id])) {
+ $url = '/bugs/roadmap.php?package=' . $db->package .
+ '&roadmapdetail=' . $db->roadmap_version .
+ '#a' . $db->roadmap_version;
+
+ $assignedRoadmap[$url] = $db->roadmap_version;
+ }
+ }
+ } else {
+ $assignedRoadmap[] = '(No roadmap defined)';
+ }
+ ?>
+ <tr id="roadmap">
+ <th class="details">Roadmaps: </th>
+
+ <td>
+ <?php
+ $i = 0;
+ $maxValue = count($assignedRoadmap) - 1;
+
+ foreach ($assignedRoadmap as $roadmap => $key) {
+ /**
+ * @todo remove this and store that into a template when
+ * we decide to move everythign to templates in this file.
+ * I could make it include this part but that's gonna be
+ * wasting time for nothing as later is going to be easier
+ * to just move everything to templates.
+ */
+ echo '<a href="' . $roadmap . '">' . $key .
'</a>';
+ if ($i < $maxValue) {
+ echo ', ';
+ }
+ ++$i;
+ }
+ ?>
+ </td>
+ <th> </th>
+ <td> </td>
+ </tr>
<?php if ($bug['votes']) {?>
<tr id="votes">