diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index c0bac0c7..88d9657f 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -493,7 +493,7 @@ class Admin_ReviewController extends Zend_Controller_Action $this->view->keyword = $keyword; } - $sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m + $sql = "select m.id,md.uuid,md.title,u.username,u.realname,m.status from mdstatus m left join metadata md on md.uuid=m.uuid left join users u on u.id=m.userid where u.id='$userid' $searchjoin"; @@ -821,7 +821,7 @@ class Admin_ReviewController extends Zend_Controller_Action $this->_redirect($redirect); } - $sql = "select r.id,r.mdcomment,r.datacomment,r.editorcomment,u.realname,md.title,att.filename,r.ts_created,ratt.attachid as attid from mdreview r + $sql = "select r.id,r.uuid,r.mdcomment,r.datacomment,r.editorcomment,u.realname,md.title,att.filename,r.ts_created,ratt.attachid as attid from mdreview r left join metadata md on md.uuid=r.uuid left join users u on u.id=r.userid left join mdreviewattach ratt on ratt.reviewid=r.id