diff --git a/application/admin/controllers/DownController.php b/application/admin/controllers/DownController.php index b2c0bcec..8f9b0617 100644 --- a/application/admin/controllers/DownController.php +++ b/application/admin/controllers/DownController.php @@ -1031,7 +1031,7 @@ class Admin_DownController extends Zend_Controller_Action { $select=$this->db->select(); $select->from('onlineapp as o',array('id','userid','unit','username','ts_created','project','project_id','project_type','project_title')) - ->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid')) + ->join($submd.' as m', 'o.uuid = m.uuid', array('title','uuid')) ->where('o.id in (select distinct(onlineappid) from dataorder)') ->order('o.id desc'); $paginator = Zend_Paginator::factory($select); @@ -1064,7 +1064,7 @@ class Admin_DownController extends Zend_Controller_Action $sql ="select o.*,u.username as uname,u.id as uid,m.title,m.uuid from onlineapp as o left join users as u on u.id = o.userid - left join metadata as m on o.uuid = m.uuid + left join $submd as m on o.uuid = m.uuid where o.id=?"; $result =$this->db->query($sql,$show); $rows = $result->fetch();