зеркало из https://github.com/mozilla/pjs.git
Tags were being separated on spaces.
This commit is contained in:
Родитель
f0ef2351f0
Коммит
f18fc53396
|
@ -136,7 +136,7 @@ if ($action eq 'Commit'){
|
|||
|
||||
$case->update(\%newvalues);
|
||||
if ($cgi->param('addtags')){
|
||||
foreach my $name (split(/[\s,]+/, $cgi->param('addtags'))){
|
||||
foreach my $name (split(/[,]+/, $cgi->param('addtags'))){
|
||||
trick_taint($name);
|
||||
my $tag = Bugzilla::Testopia::TestTag->new({'tag_name' => $name});
|
||||
my $tag_id = $tag->store;
|
||||
|
|
|
@ -103,7 +103,7 @@ if ($action eq 'Commit'){
|
|||
$plan->update(\%newvalues);
|
||||
$plan->toggle_archive if $cgi->param('togglearch');
|
||||
if ($cgi->param('addtags')){
|
||||
foreach my $name (split(/[\s,]+/, $cgi->param('addtags'))){
|
||||
foreach my $name (split(/[,]+/, $cgi->param('addtags'))){
|
||||
trick_taint($name);
|
||||
my $tag = Bugzilla::Testopia::TestTag->new({'tag_name' => $name});
|
||||
my $tag_id = $tag->store;
|
||||
|
|
|
@ -112,7 +112,7 @@ if ($action eq 'Commit'){
|
|||
);
|
||||
$run->update(\%newvalues);
|
||||
if ($cgi->param('addtags')){
|
||||
foreach my $name (split(/[\s,]+/, $cgi->param('addtags'))){
|
||||
foreach my $name (split(/[,]+/, $cgi->param('addtags'))){
|
||||
trick_taint($name);
|
||||
my $tag = Bugzilla::Testopia::TestTag->new({'tag_name' => $name});
|
||||
my $tag_id = $tag->store;
|
||||
|
|
|
@ -374,7 +374,7 @@ sub do_update{
|
|||
$case->update(\%newvalues);
|
||||
$case->update_deps($cgi->param('tcdependson'), $cgi->param('tcblocks'));
|
||||
# Add new tags
|
||||
foreach my $tag_name (split(/[\s,]+/, $cgi->param('newtag'))){
|
||||
foreach my $tag_name (split(/[,]+/, $cgi->param('newtag'))){
|
||||
trick_taint($tag_name);
|
||||
my $tag = Bugzilla::Testopia::TestTag->new({tag_name => $tag_name});
|
||||
my $tag_id = $tag->store;
|
||||
|
|
|
@ -359,7 +359,7 @@ sub do_update {
|
|||
$plan->update(\%newvalues);
|
||||
|
||||
# Add new tags
|
||||
foreach my $tag_name (split(/[\s,]+/, $cgi->param('newtag'))){
|
||||
foreach my $tag_name (split(/[,]+/, $cgi->param('newtag'))){
|
||||
trick_taint($tag_name);
|
||||
my $tag = Bugzilla::Testopia::TestTag->new({tag_name => $tag_name});
|
||||
my $tag_id = $tag->store;
|
||||
|
|
|
@ -277,7 +277,7 @@ sub do_update {
|
|||
$run->update(\%newvalues);
|
||||
|
||||
# Add new tags
|
||||
foreach my $tag_name (split(/[\s,]+/, $cgi->param('newtag'))){
|
||||
foreach my $tag_name (split(/[,]+/, $cgi->param('newtag'))){
|
||||
trick_taint($tag_name);
|
||||
my $tag = Bugzilla::Testopia::TestTag->new({tag_name => $tag_name});
|
||||
my $tag_id = $tag->store;
|
||||
|
|
Загрузка…
Ссылка в новой задаче