AntonLV 8 лет назад
Родитель
Сommit
5e26ae4ec6

+ 1 - 0
modules/base/profile/template/search_extended_results.html

@@ -0,0 +1 @@
+<div class="bx-search-result-block bx-base-pofile-units-wrapper bx-def-margin-sec-lefttopright-neg bx-def-margin-sec-bottom-neg bx-clearfix">__code__</div>

+ 1 - 0
modules/boonex/events/template/search_extended_results.html

@@ -0,0 +1 @@
+<bx_include_base:../modules/base/profile/template/search_extended_results.html />

+ 1 - 0
modules/boonex/groups/template/search_extended_results.html

@@ -0,0 +1 @@
+<bx_include_base:../modules/base/profile/template/search_extended_results.html />

+ 1 - 0
modules/boonex/organizations/template/search_extended_results.html

@@ -0,0 +1 @@
+<bx_include_base:../modules/base/profile/template/search_extended_results.html />

+ 1 - 0
modules/boonex/persons/template/search_extended_results.html

@@ -0,0 +1 @@
+<bx_include_base:../modules/base/profile/template/search_extended_results.html />

+ 3 - 1
template/scripts/BxBaseSearchExtended.php

@@ -26,7 +26,9 @@ class BxBaseSearchExtended extends BxDolSearchExtended
 
         if ($oTemplate)
             $this->_oTemplate = $oTemplate;
-        else
+        else if(!empty($this->_aObject['module']))
+            $this->_oTemplate = BxDolModule::getInstance($this->_aObject['module'])->_oTemplate;
+        else 
             $this->_oTemplate = BxDolTemplate::getInstance();
 
         $this->_sFormClassName = '';

+ 1 - 1
template/search_extended_results.html

@@ -1 +1 @@
-<div class="bx-search-result-block bx-base-pofile-units-wrapper bx-def-margin-sec-lefttopright-neg bx-def-margin-sec-bottom-neg bx-clearfix">__code__</div>
+<div class="bx-search-result-block bx-def-margin-sec-bottom-neg bx-clearfix">__code__</div>