MantisBT - TestLink
View Issue Details
0007974TestLinkEvent viewerpublic2017-06-12 07:192017-06-12 12:00
hughkay 
 
normalminoralways
newopen 
1.9.16 (2016 Q4) 
 
MySQL
Firefox
5.5.37
0007974: Typos in testsuite.class.php file
In file "lib/functions/testsuite.class.php" there are some typos leading to warnings in event viewer:
in lines 863 and 928 (latest version from Github, within functions get_testcases_deep() and get_children_testcases()) there is a function call:
 $item=$tcase_mgr->get_last_version_info($value['id'],array('output' => full, 'get_steps' => true));
n
However, the word "full" is not put into quotes. Hence this evaluates to a non-defined constant at runtime which will throw an error.
Solution:
Put quotes around the word "full", i.e.
 $item=$tcase_mgr->get_last_version_info($value['id'],array('output' => 'full', 'get_steps' => true));
No tags attached.
Issue History
2017-06-12 07:19hughkayNew Issue
2017-06-12 12:00fmanNote Added: 0026478

Notes
(0026478)
fman   
2017-06-12 12:00   
thanks