Mantis Bugtracker          
testlink.org

View Revisions: Issue #6084 All Revisions ] Back to Issue ]
Summary 0006084: Cannot copy a testcase with (attached) linked requirements
Revision 2013-12-09 11:06 by fman
Description When try to copy a testcase which has (attached) linked requirement, and checking corresponding checkbox to keep (attached) linked requirement in the duplicated testcase, teslink shows a DB error.
The testcase is well copied, but without the requirement links.


I've done some modifications which seems to remove the bug :
</lib/functions/testcase.clss.php>

Line 1544:
$this->copyReqAssignment($id, $newTCObj['id'], $my['mappings']['requirements'], $ix->authorID); // added last argument (please check syntax since I've entered it manually from a paper and not by copy/paste)

Line 3694:
function copyReqAssignmentTo($from, $to, $mappings, $authorID) // added last argument

Line 3717:
$req_mgr->assign_to_tcase($items,$to, $authorID); // added $authorID
Revision 2013-12-09 10:35 by ntr
Description When try to copy a testcase which has attached requirement, and checking corresponding checkbox to keep attached requirement in the duplicated testcase, teslink shows a DB error.
The testcase is well copied, but without its traceability.


I've done some modifications which seems to remove the bug :
</lib/functions/testcase.clss.php>

Line 1544:
$this->copyReqAssignment($id, $newTCObj['id'], $my['mappings']['requirements'], $ix->authorID); // added last argument (please check syntax since I've entered it manually from a paper and not by copy/paste)

Line 3694:
function copyReqAssignmentTo($from, $to, $mappings, $authorID) // added last argument

Line 3717:
$req_mgr->assign_to_tcase($items,$to, $authorID); // added $authorID



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker