This commit is contained in:
wangchunsheng
2011-11-21 05:37:48 +00:00
parent 3f16d06c2d
commit e81cba7d2c
+4 -2
View File
@@ -775,8 +775,10 @@ class bug extends control
*/
public function ajaxGetModuleOwner($moduleID, $productID = 0)
{
if($moduleID) die($this->dao->findByID($moduleID)->from(TABLE_MODULE)->fetch('owner'));
die($this->dao->findByID($productID)->from(TABLE_PRODUCT)->fetch('QM'));
$owner = '';
if($moduleID) $owner = $this->dao->findByID($moduleID)->from(TABLE_MODULE)->fetch('owner');
if(!$owner) $owner = $this->dao->findByID($productID)->from(TABLE_PRODUCT)->fetch('QM');
die($owner);
}
/**