Lines Matching refs:bug
27 $bug = $_SESSION['bug_preview']; variable
28 $bug['submitted'] = time();
29 $bug['modified'] = null;
30 $bug['votes'] = 0;
31 $bug['assign'] = '';
33 if (!$bug) {
133 if (!isset($bug)) {
135 $bug = $bugRepository->findOneById($bug_id); variable
139 if (is_object($bug)) {
141 display_bug_error($bug);
147 if (!$bug) {
154 $show_bug_info = bugs_has_access($bug_id, $bug, $pw, $user_flags);
161 if ($bug['block_user_comment'] == 'Y' && $logged_in != 'developer') {
179 $block_user = isset($block_user) ? $block_user : $bug['block_user_comment'];
180 $is_private = isset($is_private) ? $is_private : $bug['private'];
185 $project = $bug['project'];
203 if (!$is_security_developer && $bug['private'] == 'Y') {
282 if (!$show_bug_info && $bug['private'] == 'Y') {
290 if ($bug['private'] == 'Y' && !$is_security_developer
291 && $bug['bug_type'] == 'Security'
292 && $_POST['in']['bug_type'] != $bug['bug_type']) {
305 && $_POST['in']['status'] != $bug['status'] && $state_types[$_POST['in']['status']] != 2) {
323 $bug['email'] != $_POST['in']['email']
327 $from = $bug['email'];
337 if ($bug['private'] == 'N' && $_POST['in']['bug_type'] == 'Security'
338 && $_POST['in']['bug_type'] != $bug['bug_type']) {
368 $changed = bug_diff($bug, $_POST['in']);
400 if (!$show_bug_info && $bug['private'] == 'Y') {
428 $_POST['in']['cve_id'] = $bug['cve_id'];
431 if ($bug['private'] == 'N' && $bug['private'] != $is_private) {
446 … !in_array($bug['status'], ['Not a bug', 'Closed', 'Duplicate', 'No feedback', 'Wont fix']) &&
452 $RESOLVE_REASONS[$_POST['in']['resolve']]['status'] == $bug['status'])
454 … $errors[] = 'The bug is already marked "'.$bug['status'].'". (Submit again to ignore this.)';
456 if ($_POST['in']['status'] == $bug['status']) {
459 …if (isset($FIX_VARIATIONS) && isset($FIX_VARIATIONS[$_POST['in']['resolve']][$bug['package_name']]…
460 $reason = $FIX_VARIATIONS[$_POST['in']['resolve']][$bug['package_name']];
467 switch ($bug['package_name']) {
472 $errors[] = 'Cannot use "try svn" with ' . $bug['package_name'];
479 $reason = str_replace('@svn@', $bug['package_name'], $reason);
496 if ($bug['email'] != $_POST['in']['email'] && !empty($_POST['in']['email'])) {
501 if ($bug['bug_type'] != $_POST['in']['bug_type']) {
509 $_POST['in']['assign'] = $bug['assign'];
551 $changed = bug_diff($bug, $_POST['in']);
578 mail_bug_updates($bug, $_POST['in'], $from, $ncomment, $edit, $bug_id);
582 switch (txfield('bug_type', $bug, isset($_POST['in']) ? $_POST['in'] : null))
600 …$show_bug_info ? "{$bug_type} #{$bug_id} :: " . htmlspecialchars($bug['sdesc']) : "You must be log…
602 …<link rel='alternate' type='application/rss+xml' title='{$bug['package_name']} Bug #{$bug['id']} -…
603 …<link rel='alternate' type='application/rss+xml' title='{$bug['package_name']} Bug #{$bug['id']} -…
657 <td id="summary" colspan="5"><?php echo htmlspecialchars($bug['sdesc']); ?></td>
661 <td style="white-space: nowrap;"><?php echo format_date($bug['submitted']); ?></td>
663 …<td style="white-space: nowrap;"><?php echo ($bug['modified']) ? format_date($bug['modified']) : '…
666 <?php if ($bug['votes']) { ?>
668 <tr><th class="details">Votes:</th><td><?php echo $bug['votes'] ?></td></tr>
669 …"details">Avg. Score:</th><td><?php printf("%.1f ± %.1f", $bug['average'], $bug['deviation'…
670 …td><?php printf("%d of %d (%.1f%%)", $bug['reproduced'], $bug['tried'], $bug['tried'] ? ($bug['rep…
671 <?php if ($bug['reproduced']) { ?>
672 …ails">Same Version:</th><td><?php printf("%d (%.1f%%)", $bug['samever'], ($bug['samever'] / $bug['…
673 …s="details">Same OS:</th><td><?php printf("%d (%.1f%%)", $bug['sameos'], ($bug['sameos'] / $bug['r…
683 …<td><?php echo ($bug['status'] !== 'Spam') ? spam_protect(htmlspecialchars($bug['email'])) : 'Hidd…
685 <?php if (!empty($bug['assign'])) { ?>
686 …echo urlencode($bug['assign']), '">', htmlspecialchars($bug['assign']); ?></a> (<a href="https://p…
688 <td><?php echo htmlspecialchars($bug['assign'] ?? ''); ?></td>
694 <td><?php echo htmlspecialchars($bug['status']); ?></td>
696 …ge_name[]=<?php echo urlencode($bug['package_name']), '">', htmlspecialchars($bug['package_name'])…
701 <td><?php echo htmlspecialchars($bug['php_version']); ?></td>
703 <td><?php echo htmlspecialchars($bug['php_os'] ?? ''); ?></td>
708 <td><?php echo $bug['private'] == 'Y' ? 'Yes' : 'No'; ?></td>
710 …<td><?php if (!empty($bug['cve_id'])) { printf('<a href="https://cve.mitre.org/cgi-bin/cvename.cgi…
722 (!$email || $bug['email'] == $email? control(2, 'Edit') : ''),
727 <?php if ($show_bug_info && !$edit && canvote($thanks, $bug['status'])) { ?>
898 …set($_POST['in']['status']) ? $_POST['in']['status'] : '', $edit, $bug['status'], $bug['assign']);…
917 …set($_POST['in']['package_name']) ? $_POST['in']['package_name'] : '', 0, $bug['package_name']); ?>
925 <?php show_type_options($bug['bug_type'], /* deprecated */ true); ?>
932 … type="text" size="60" maxlength="80" name="in[sdesc]" value="<?php echo ($bug['status'] !== 'Spam…
938 …<?php echo ($bug['status'] !== 'Spam') ? spam_protect(field('email')) : 'Hidden because of SPAM'; …
959 if ($bug['block_user_comment'] == 'Y' && $logged_in != 'developer') {
961 } elseif ($bug['status'] === 'Spam' && $logged_in != 'developer') {
981 if ($edit == 3 && $bug['private'] == 'N') {
983 if ($bug['status'] === 'Spam') {
1011 if (canvote($thanks, $bug['status'])) {
1051 if ($bug['block_user_comment'] == 'Y' && $logged_in != 'developer') {
1053 } elseif ($bug['status'] === 'Spam' && $logged_in != 'developer') {
1072 if ($bug['ldesc']) {
1075 } else if ($bug['status'] !== 'Spam') {
1076 …output_note(0, $bug['submitted'], $bug['email'], $bug['ldesc'], 'comment', $bug['reporter_name'], …
1083 if ($show_bug_info && $bug_id != 'PREVIEW' && $bug['status'] !== 'Spam') {
1125 if ($show_bug_info && is_array($bug_comments) && count($bug_comments) && $bug['status'] !== 'Spam')…
1227 foreach ($related as $bug) {
1228 bugs_add_comment($bug, $from, $comment_name,