process_custom_fields($bug['bugid']);
+ $dependencies = preg_split('#([^0-9].*?)#', $bugsys->in['dependency'], -1, PREG_SPLIT_NO_EMPTY);
+ $dependencies = ((count($dependencies) < 1) ? '' : implode(', ', $dependencies));
+
$db->query("
UPDATE " . TABLE_PREFIX . "bug
SET summary = '" . $bugsys->in['summary'] . "',
resolution = " . intval($bugsys->in['resolution']) . ",
assignedto = " . intval($bugsys->in['assignedto']) . ",
duplicateof = " . intval($bugsys->in['duplicateof']) . ",
+ dependency = '$dependencies',
productid = " . $pcv['product'] . ",
componentid = " . $pcv['component'] . ",
versionid = " . $pcv['version'] . ",
$duplicate = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = $bug[duplicateof]");
}
+ if ($bug['dependency'])
+ {
+ $dependencies = $db->query("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid IN ($bug[dependency])");
+ while ($dependency = $db->fetch_array($dependencies))
+ {
+ $depends[] = "<a href=\"showreport.php?bugid=$dependency[bugid]\" alt=\"$dependency[summary]\">$dependency[bugid]</a>";
+ }
+ $dependencies = implode(' ', $depends);
+ }
+
eval('$template->flush("' . $template->fetch('editreport') . '");');
}
}
$dupelist = implode(', ', $dupelist);
+if ($bug['dependency'])
+{
+ $dependencies = $db->query("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid IN ($bug[dependency])");
+ while ($dependency = $db->fetch_array($dependencies))
+ {
+ $depends[] = "<a href=\"showreport.php?bugid=$dependency[bugid]\" title=\"$dependency[summary]\" target=\"_blank\">$dependency[bugid]</a>";
+ }
+ $dependencies = implode(' ', $depends);
+}
+
// -------------------------------------------------------------------
// custom fields
$customfields = '';
<if condition="$bug['assigninfo']"><div><strong>Assigned to:</strong> $bug[assigninfo]</div></if>
<if condition="$bug['duplicateof']"><div><strong>Duplicate of:</strong> <a href="showreport.php?bugid=$bug[duplicateof]">$duplicateof[summary]</a></div></if>
<if condition="$dupelist"><div><strong>Bugs marked as duplicates of this:</strong> $dupelist</div></if>
+<if condition="$dependencies"><div><strong>Dependencies:</strong> $dependencies</div></if>
$customfields
<div><strong>Duplicate of:</strong> <input type="text" name="duplicateof" size="10" value="<if condition="$bug['duplicateof']">$bug[duplicateof]</if>" /> <if condition="$bug['duplicateof']"><a href="showreport.php?bugid=$bug[duplicateof]" target="_blank">$duplicate[summary]</a></if>
+<div><strong>Dependencies:</strong> <input type="text" name="dependency" size="25" value="$bug[dependency]" /> $dependencies
+
<div><strong>Product/Component/Version:</strong>
<div>$pcv_select</div>
</div>