Closed Bug 1229162 Opened 9 years ago Closed 9 years ago

"Priority Breakdown" report uses no_break filter, resulting in error

Categories

(Testopia :: Reports, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u430950, Assigned: u430950)

Details

Attachments

(1 file, 2 obsolete files)

Since 'no_break' was removed in Bugzilla 5.0+, Priority Breakdown reports result in a error as it looks for the missing filter. This report needs to be modified so that it uses the 'nowrap' class, as changed in bug 880282
Attached patch patch.diff (obsolete) — Splinter Review
Easy patch. Tested and works as expected.
Assignee: gregaryh → theycallmefish
Status: NEW → ASSIGNED
Attachment #8693785 - Flags: review?(LpSolit)
Target Milestone: --- → 3.0
Comment on attachment 8693785 [details] [diff] [review]
patch.diff

>           [% FOREACH p = priorities.keys.sort %]
>           <tr>
>-            <td style="border-right: 2px solid black; font-weight: bold; text-align: left;">[% p FILTER no_break %]</td>
>+            <td class="nowrap" style="border-right: 2px solid black; font-weight: bold; text-align: left;">[% p FILTER none %]</td>
>           </tr>
>           [% END %]
>         </table>

The patch is broken:

  patch: **** malformed patch at line 14: @@ -123,7 +123,7 @@


In my copy of this template, there are 9 <td> in this <tr> while there is only one in your patch.
Attachment #8693785 - Flags: review?(LpSolit) → review-
Attached patch patch-v2.diff (obsolete) — Splinter Review
My mistake. The previous patch had pieces of the Testopia consolidation in it that I incorrectly attempted to remove. Here is a new patch.
Attachment #8693785 - Attachment is obsolete: true
Attachment #8693802 - Flags: review?(LpSolit)
So which patch should be applied first? The other one first, right?
(In reply to Frédéric Buclin from comment #4)
> So which patch should be applied first? The other one first, right?

I reverted the file to trunk, so this one can be approved first.
On second thought, the other one would probably be best first, so that this one fixes that one filter area instead of the patch reverting.
Otherwise, I will need to write a new patch for tr_list_caseruns.
Err, I'm a bit confused. How is this patch related to this bug?? Isn't this patch about bug 1229135 instead?
This patch fixes the issue with priority breakdown reports resulting in an error. Ultimately, the problem in bug 1229135 is present on clickable links generated from this report, but that is a list problem rather than a report problem.
Comment on attachment 8693802 [details] [diff] [review]
patch-v2.diff

>-            <td style="border-right: 2px solid black; font-weight: bold; text-align: left;">[% p FILTER no_break %]</td>
>+            <td class="nowrap" style="border-right: 2px solid black; font-weight: bold; text-align: left;">[% p FILTER none %]</td>

We are in a HTML page, so it should be replaced by |FILTER html| instead, to prevent code injection. And the patch no longer applies cleanly due to the other checkin. Could you update it, please? :)
Attached patch patch-v3.diffSplinter Review
Switched FILTER to html and wrote patch against current trunk
Attachment #8693802 - Attachment is obsolete: true
Attachment #8693802 - Flags: review?(LpSolit)
Attachment #8694362 - Flags: review?(LpSolit)
Comment on attachment 8694362 [details] [diff] [review]
patch-v3.diff

Thanks! :) r=LpSolit
Attachment #8694362 - Flags: review?(LpSolit) → review+
To ssh://gitolite3@git.mozilla.org/bugzilla/extensions/Testopia.git
   8703d68..97b81ca  master -> master
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: