Просмотр исходного кода

#4148 - Build-in API support (form & notifs)

roman.lesnikov@gmail.com 3 лет назад
Родитель
Сommit
3b0e2ccfff

+ 1 - 1
modules/boonex/notifications/classes/BxNtfsTemplate.php

@@ -92,7 +92,7 @@ class BxNtfsTemplate extends BxBaseModNotificationsTemplate
             if(empty($sEvent))
                 continue;
             if (bx_is_api()){
-                $sEvent['author_data'] = BxDolProfile::getData($sEvent['object_owner_id']);
+                $sEvent['author_data'] = BxDolProfile::getData($sEvent['owner_id']);
                 $aTmplVarsEvents[] = $sEvent;
             }
             else

+ 1 - 1
template/scripts/BxBaseFormView.php

@@ -1729,7 +1729,7 @@ BLAH;
         ));
     }
 
-    protected function genCustomInputLabels ($aInput)
+    protected function genCustomInputLabels (&$aInput)
     {
         $oLabel = BxDolLabel::getInstance();