Add Test Cases to Test Plan keyword problem in beta6.

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
s_knight
TestLink user
Posts: 10
Joined: Tue Aug 17, 2010 12:29 pm
Location: Budapest

Add Test Cases to Test Plan keyword problem in beta6.

Post by s_knight »

Hi Testlink developer!

We start using the Testlink 1.9 beta 6 and we found one error about keywords. The test case displaying not working in Add Test Cases to Test Plan page. I select only one keyword from my list and I click one test suite directory (which is contains some test cases with different keywords). And the right panel displays all test cases in selected test suite.

I debug some php files and found following "error":
lib/functions/specview.php:
function getTestSpecFromNode:
if(($useFilter['keyword_id']=$filters['keyword_id'][0] > 0))
I made following fix for filtering problem (repleace following line in getTestSpecFromNode function if(($useFilter['keyword_id']=$filters['keyword_id'][0] > 0))) :

Code: Select all

    /*
     * Repair filter checking
     * Isty from Balabit
     * 
     * If the filter is not array then convert to array.
     */    
    if( !is_array($filters['keyword_id']) ) {
        $tempVar = $filters['keyword_id'];
        $filters['keyword_id'] = array();
        $filters['keyword_id'][0] = $tempVar;
    }

    if(($useFilter['keyword_id']=$filters['keyword_id'][0] > 0))
It's working for me. Could you integrate this patch to RC1 or could you fix this error?
Istvan Szabo
Senior Tester
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Add Test Cases to Test Plan keyword problem in beta6.

Post by fman »

thanks for your help, but please do not use forum for issues, but our mantis site
please open an issue on mantis with your fix
s_knight
TestLink user
Posts: 10
Joined: Tue Aug 17, 2010 12:29 pm
Location: Budapest

Re: Add Test Cases to Test Plan keyword problem in beta6.

Post by s_knight »

Hi!
Ok, I did it!
Istvan Szabo
Senior Tester
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Add Test Cases to Test Plan keyword problem in beta6.

Post by fman »

great thanks!
Post Reply