diff --git a/webtools/testopia/Bugzilla/Testopia/Attachment.pm b/webtools/testopia/Bugzilla/Testopia/Attachment.pm index 23a8e31e682..ca33238bd87 100644 --- a/webtools/testopia/Bugzilla/Testopia/Attachment.pm +++ b/webtools/testopia/Bugzilla/Testopia/Attachment.pm @@ -374,7 +374,7 @@ sub link_case { return; } - $dbh->do("INSERT INTO test_case_attachments (attachment_id, plan_id) + $dbh->do("INSERT INTO test_case_attachments (attachment_id, case_id) VALUES (?,?)", undef, ($self->id, $case_id)); $dbh->bz_unlock_tables(); diff --git a/webtools/testopia/template/en/default/testopia/case/clone.html.tmpl b/webtools/testopia/template/en/default/testopia/case/clone.html.tmpl index 7cb1124a494..4300fac36e6 100644 --- a/webtools/testopia/template/en/default/testopia/case/clone.html.tmpl +++ b/webtools/testopia/template/en/default/testopia/case/clone.html.tmpl @@ -75,6 +75,10 @@