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:
@@ -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')) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user