diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index f478cdb8..4dce02eb 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -112,7 +112,7 @@ class ServiceController extends Zend_Controller_Action if (empty($w)) $w=-180; //$start=$this->_request->getParam('start'); //$end=$this->_request->getParam('end'); - $sql="select id,title,uuid,substring(description for 400),filesize,fileformat from normalmetadata where east? and north?"; + $sql="select id,title,uuid,substring(description for 400) as description,filesize,fileformat from normalmetadata where east? and north?"; if (!empty($key)) { $sql.= " and (title ilike ? or description ilike ?)"; $sql.= " order by title";