Sfoglia il codice sorgente

Ticket #4558 - Build-in API support: Universal service getMenu.

AntonLV 2 anni fa
parent
commit
74cf9d2183

+ 1 - 1
modules/boonex/timeline/classes/BxTimelineMenuItemManage.php

@@ -64,7 +64,7 @@ class BxTimelineMenuItemManage extends BxTimelineMenuItemActions
 
 
     public function setEvent($aEvent, $aBrowseParams = [])
     public function setEvent($aEvent, $aBrowseParams = [])
     {
     {
-        $bResult = parent::setEvent($aEvent);
+        $bResult = parent::setEvent($aEvent, $aBrowseParams);
 
 
         if($bResult) 
         if($bResult) 
             $this->_aContentParams = array_merge($this->_aContentParams, [
             $this->_aContentParams = array_merge($this->_aContentParams, [

+ 3 - 0
modules/boonex/timeline/classes/BxTimelinePageViewItem.php

@@ -57,6 +57,9 @@ class BxTimelinePageViewItem extends BxTemplPage
 
 
     public function getCode()
     public function getCode()
     {
     {
+        if(empty($this->_aItemData) || !is_array($this->_aItemData))
+            $this->_oTemplate->displayPageNotFound();
+
         if($this->_aItemData['code'] != 0) {
         if($this->_aItemData['code'] != 0) {
             switch($this->_aItemData['code']) {
             switch($this->_aItemData['code']) {
                 case 1:
                 case 1: