Bug 428974 – Text files with CR/LF in testopia repository

patch by vrb

Added "is not tagged with" query.


git-svn-id: svn://10.0.0.236/trunk@250225 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ghendricks%novell.com
2008-04-14 22:40:37 +00:00
parent 20fe3c0064
commit 16e943902f
6 changed files with 2126 additions and 2121 deletions

View File

@@ -653,6 +653,7 @@ sub init {
},
"^tags," => sub {
if ($t !~ 'notag'){
if ($obj eq 'case_run'){
push(@supptables,
"INNER JOIN test_cases " .
@@ -672,7 +673,8 @@ sub init {
"INNER JOIN test_tags " .
"ON ". $obj ."_tags.tag_id = test_tags.tag_id");
}
$f = "test_tags.tag_name";
}
$f = "test_tags.tag_name";
},
"^requirement," => sub {
if ($obj eq 'case_run'){
@@ -888,6 +890,9 @@ sub init {
$term = "NOT (" . join(" OR ", @list) . ")";
}
},
",notag" => sub {
$term = "test_". $obj ."s.". $obj ."_id NOT IN (SELECT junc.". $obj ."_id FROM test_". $obj ."_tags AS junc JOIN test_tags AS junc_tags ON junc.tag_id = junc_tags.tag_id WHERE junc_tags.tag_name = " . $q .")";
},
);
if ($cgi->param('case_id')) {

View File

@@ -256,7 +256,7 @@ sub store {
foreach my $testplan (@testplan) {
my $category = $testplan->product->categories->[0];
my $categoryid = check_case_category($self->category, $testplan->product_id) if ( defined($category) );
my $categoryid = check_case_category($self->category, new Bugzilla::Testopia::Product($testplan->product_id)) if ( defined($category) );
if ( ! defined($categoryid) ) {
my $new_category = Bugzilla::Testopia::Category->create({
product_id => $testplan->product_id,