my %deps_in = (dependson => $depends_on || '', blocked => $blocks || '');
- foreach my $type qw(dependson blocked) {
+ foreach my $type (qw(dependson blocked)) {
my @bug_ids = ref($deps_in{$type})
? @{$deps_in{$type}}
: split(/[\s,]+/, $deps_in{$type});
foreach my $num (1,2,3) {
# If there's no value in the email field, delete the related fields.
if (!$self->param("email$num")) {
- foreach my $field qw(type assigned_to reporter qa_contact
- cc longdesc)
- {
+ foreach my $field (qw(type assigned_to reporter qa_contact cc longdesc)) {
$self->delete("email$field$num");
}
}
# creator/attacher require an extra lookup, so we only send them if
# the filter wants them.
- foreach my $field qw(creator attacher) {
+ foreach my $field (qw(creator attacher)) {
if (filter_wants $filters, $field) {
$item->{$field} = $self->type('string', $attach->attacher->login);
}
$series->remove_from_db();
# Remove (sub)categories which no longer have any series.
- foreach my $cat qw(category subcategory) {
+ foreach my $cat (qw(category subcategory)) {
my $is_used = $dbh->selectrow_array("SELECT COUNT(*) FROM series WHERE $cat = ?",
undef, $series->{"${cat}_id"});
if (!$is_used) {
$values{'keywords'} = create_keyword($number)->name;
- foreach my $field qw(assigned_to qa_contact reporter cc) {
+ foreach my $field (qw(assigned_to qa_contact reporter cc)) {
$values{$field} = create_user("$number-$field")->login;
}
my $flagtypes = _create_flagtypes($number);
my %flags;
- foreach my $type qw(a b) {
+ foreach my $type (qw(a b)) {
$flags{$type} = _get_flag_values(@_, $flagtypes->{$type});
}
return \%flags;
# These are necessary for the changedfrom tests.
my $extra_values = $self->_extra_bug_create_values->{$number};
- foreach my $field qw(comments remaining_time percentage_complete
+ foreach my $field (qw(comments remaining_time percentage_complete
keyword_objects everconfirmed dependson blocked
- groups_in classification)
+ groups_in classification))
{
$extra_values->{$field} = $bug->$field;
}