* change field name fromLib to fromCaseID.

This commit is contained in:
wangyidong
2017-03-17 13:24:43 +08:00
parent 5e73bbc6ee
commit 7648bfd46e
5 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -423,12 +423,12 @@ class testsuiteModel extends model
*/
public function getNotImportedCases($productID, $libID, $orderBy = 'id_desc', $pager = null)
{
$importedCases = $this->dao->select('fromLib')->from(TABLE_CASE)
$importedCases = $this->dao->select('fromCaseID')->from(TABLE_CASE)
->where('product')->eq($productID)
->andWhere('lib')->eq($libID)
->andWhere('fromLib')->ne('')
->andWhere('fromCaseID')->ne('')
->andWhere('deleted')->eq(0)
->fetchPairs('fromLib', 'fromLib');
->fetchPairs('fromCaseID', 'fromCaseID');
return $this->dao->select('*')->from(TABLE_CASE)
->where('lib')->eq($libID)
->andWhere('product')->eq(0)