修复jump始终为1的问题
This commit is contained in:
parent
0103f38324
commit
2873136f50
|
@ -621,8 +621,8 @@ class DataController extends Zend_Controller_Action
|
|||
$sql="select s.* from datasource d left join source s on d.sourceid=s.id where d.uuid=?";
|
||||
$row=$this->db->fetchRow($this->db->quoteInto($sql,$uuid));
|
||||
$jump=(int)$this->_request->getParam('jump');
|
||||
if (empty($jump)) $jump=1;//默认跳转
|
||||
if (@$row->has_pages && ($jump!=0))
|
||||
if (!isset($jump)) $jump=1;//默认跳转
|
||||
if (@$row->has_pages && ($jump==1))
|
||||
{
|
||||
$this->_helper->viewRenderer($row->code.'/view',null,true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue