From e66bfda7983913ac93247d3e6f993c0ce1bbe7c7 Mon Sep 17 00:00:00 2001
From: "lpsolit%gmail.com" <>
Date: Tue, 18 Oct 2005 04:43:40 +0000
Subject: Bug 299753: Replace old code in editproducts.cgi by routines from
Product.pm - Patch by André Batosti
- Updated product name from '[% old_product FILTER html %]' to
+ Updated product name from '[% old_product.name FILTER html %]' to
[% new_product FILTER html %].
+ [%- product.name FILTER url_quote %]
+ [%- classification_url_part FILTER none %]">[% product.name FILTER html %].
+ [% updated = 1 %]
[% END %]
-[% IF updated_description %]
+[% IF product.description != old_product.description %]
Updated description to:
[% new_description FILTER html %]
+[% product.description FILTER html %]
+ [% updated = 1 %] [% END %] -[% IF updated_bugsubmitstatus %] +[% IF product.disallow_new != old_product.disallow_new %]Product is now - [% IF new_bugsubmitstatus %] + [% IF product.disallow_new %] closed to [% ELSE %] open for [% END %] new [% terms.bugs %]. + [% updated = 1 %] [% END %] -[% IF updated_milestoneurl %] +[% IF product.milestone_url != old_product.milestone_url %]
Updated milestone URL
- [% IF old_milestoneurl != '' %]
- from
'
- [%- old_milestoneurl FILTER html %]'
+ [% IF old_product.milestone_url != '' %]
+ from
'
+ [%- old_product.milestone_url FILTER html %]'
[% END %]
to
- [% IF new_milestoneurl != '' %]
-
'
- [%- new_milestoneurl FILTER html %]'.
+ [% IF product.milestone_url != '' %]
+
'
+ [%- product.milestone_url FILTER html %]'.
[% ELSE %]
be empty.
[% END %]
- Updated default milestone from '[% old_defaultmilestone FILTER html %]' to - '[% new_defaultmilestone FILTER html %]'. + Updated default milestone from '[% old_product.default_milestone FILTER html %]' to + '[% product.default_milestone FILTER html %]'.
+ [% updated = 1 %] [% END %] -[% IF updated_votesperuser %] +[% IF product.votes_per_user != old_product.votes_per_user %]Updated votes per user from - [%+ old_votesperuser FILTER html %] to - [%+ new_votesperuser FILTER html %]. + [%+ old_product.votes_per_user FILTER html %] to + [%+ product.votes_per_user FILTER html %]. + [% updated = 1 %] [% END %] -[% IF updated_maxvotesperbug %] +[% IF product.max_votes_per_bug != old_product.max_votes_per_bug %]
Updated maximum votes per [% terms.bug %] from - [%+ old_maxvotesperbug FILTER html %] to - [%+ new_maxvotesperbug FILTER html %]. + [%+ old_product.max_votes_per_bug FILTER html %] to + [%+ product.max_votes_per_bug FILTER html %]. + [% updated = 1 %] [% END %] -[% IF updated_votestoconfirm %] +[% IF product.votes_to_confirm != old_product.votes_to_confirm %]
Updated number of votes needed to confirm a [% terms.bug %] from - [%+ old_votestoconfirm FILTER html %] to - [%+ new_votestoconfirm FILTER html %]. + [%+ old_product.votes_to_confirm FILTER html %] to + [%+ product.votes_to_confirm FILTER html %]. + [% updated = 1 %] [% END %] -[% UNLESS updated_bugsubmitstatus || - updated_description || - updated_milestoneurl || - updated_votesperuser || - updated_maxvotesperbug || - updated_votestoconfirm || - updated_defaultmilestone || - updated_product %] -
Nothing changed for product '[% name FILTER html %]'. +[% UNLESS updated %] +
Nothing changed for product '[% product.name FILTER html %]'. [% END %] [%# Note that this display of changed votes and/or confirmed bugs is -- cgit v1.2.3-24-g4f1b