Alex Trofimov 10 лет назад
Родитель
Сommit
914e616e7d

+ 1 - 1
modules/base/profile/classes/BxBaseModProfileFormsEntryHelper.php

@@ -79,7 +79,7 @@ class BxBaseModProfileFormsEntryHelper extends BxBaseModGeneralFormsEntryHelper
 
     public function onDataEditAfter ($iContentId, $aContentInfo, $aTrackTextFieldsChanges, $oProfile)
     {
-        if ($s = parent::onDataEditAfter())
+        if ($s = parent::onDataEditAfter($iContentId, $aContentInfo, $aTrackTextFieldsChanges, $oProfile))
             return $s;
 
         $CNF = &$this->_oModule->_oConfig->CNF;

+ 1 - 1
modules/base/text/classes/BxBaseModTextFormsEntryHelper.php

@@ -78,7 +78,7 @@ class BxBaseModTextFormsEntryHelper extends BxBaseModGeneralFormsEntryHelper
 
     public function onDataEditAfter ($iContentId, $aContentInfo, $aTrackTextFieldsChanges, $oProfile)
     {
-        if ($s = parent::onDataEditAfter())
+        if ($s = parent::onDataEditAfter($iContentId, $aContentInfo, $aTrackTextFieldsChanges, $oProfile))
             return $s;
 
         $CNF = &$this->_oModule->_oConfig->CNF;

+ 1 - 0
modules/boonex/albums/classes/BxAlbumsSearchResultMedia.php

@@ -89,6 +89,7 @@ class BxAlbumsSearchResultMedia extends BxBaseModTextSearchResult
                 $this->aCurrent['rss']['link'] = 'modules/?r=albums/rss_media/' . $sMode . '/' . (int)$aParams['album_id'];
                 $this->aCurrent['sorting'] = 'order';
                 $this->sOrderDirection = 'ASC';
+                $oProfileAuthor = BxDolProfile::getInstance((int)$aParams['author']);
                 break;
 
             case 'recent':

+ 1 - 1
modules/boonex/albums/classes/BxAlbumsTemplate.php

@@ -289,7 +289,7 @@ class BxAlbumsTemplate extends BxBaseModTextTemplate
         $oModule = BxDolModule::getInstance($this->MODULE);
         $CNF = &$oModule->_oConfig->CNF;
 
-        return $oModule->_serviceBrowse ('album', array('unit_view' => 'gallery', 'album_id' => $aData[$CNF['FIELD_ID']]), BX_DB_PADDING_DEF, true, true, 'SearchResultMedia');
+        return $oModule->_serviceBrowse ('album', array('unit_view' => 'gallery', 'album_id' => $aData[$CNF['FIELD_ID']], 'author' => $aData[$CNF['FIELD_AUTHOR']]), BX_DB_PADDING_DEF, true, true, 'SearchResultMedia');
     }
 
     function mediaAuthor ($aMediaInfo, $iProfileId = false, $sFuncAuthorDesc = '', $sTemplateName = '')