Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004334TestLinkTest Specificationpublic2011-03-18 12:322011-03-22 19:16
Reporterdaroz 
Assigned Tofman 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.9.1 (bug fixing) 
Fixed in Version1.9.2 (2011 Q2 - bug fixing) 
Summary0004334: TestCase Deactivation error
DescriptionWhen try to deactivate testcase, i get DB Access Error:

#0 database->exec_query( UPDATE tstlnktcversions SET active=0 WHERE tcversion.id = 10) called at [/var/www/testlink/lib/functions/testcase.class.php:3601]

Its happened whith using prefix for table name
Additional InformationColumn name is hardcoded in file /var/www/testlink/lib/functions/testcase.class.php
TagsNo tags attached.
Database (MySQL,Postgres,etc)mysql
Browserall
PHP Version5.2.10
TestCaseID
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
(0013898)
fman (administrator)
2011-03-18 14:12

replace function update_active_status()

with
function update_active_status($id,$tcversion_id,$active_status)
{
$debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;
$sql = " /* $debugMsg */ UPDATE {$this->tables['tcversions']} " .
        " SET active={$active_status}" .
" WHERE id = {$tcversion_id}";
     
$result = $this->db->exec_query($sql);
return $result ? 1: 0;
}


retest and give feedback
(0014207)
daroz (reporter)
2011-03-22 13:49

Test ok
Works properly

Thanks

- Issue History
Date Modified Username Field Change
2011-03-18 12:32 daroz New Issue
2011-03-18 14:12 fman Note Added: 0013898
2011-03-18 14:12 fman Assigned To => fman
2011-03-18 14:12 fman Status new => feedback
2011-03-22 13:49 daroz Note Added: 0014207
2011-03-22 13:49 daroz Status feedback => assigned
2011-03-22 19:16 fman Status assigned => closed
2011-03-22 19:16 fman Resolution open => fixed
2011-03-22 19:16 fman Fixed in Version => 1.9.2 (2011 Q2 - bug fixing)



Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker