AntonLV пре 2 година
родитељ
комит
0107452f88

+ 6 - 0
studio/template/images/icons/mi-agt-helpers.svg

@@ -0,0 +1,6 @@
+<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g id="Icon">
+<path id="Ellipse 1" d="M14 17C17.3137 17 20 14.3137 20 11C20 7.68629 17.3137 5 14 5C10.6863 5 8 7.68629 8 11" stroke="#D1D5DB" stroke-width="2" stroke-linecap="round"/>
+<circle id="Ellipse 3" cx="14" cy="22" r="1" stroke="#D1D5DB" stroke-width="2"/>
+</g>
+</svg>

+ 1 - 1
studio/template/scripts/BxBaseStudioAgents.php

@@ -34,7 +34,7 @@ class BxBaseStudioAgents extends BxDolStudioAgents
         $this->aMenuItems = [
             BX_DOL_STUDIO_AGENTS_TYPE_SETTINGS => ['icon' => 'mi-cog.svg', 'icon_bg' => true],
             BX_DOL_STUDIO_AGENTS_TYPE_PROVIDERS => ['icon' => 'mi-agt-providers.svg', 'icon_bg' => true],
-            BX_DOL_STUDIO_AGENTS_TYPE_HELPERS => ['icon' => 'mi-agt-automators.svg', 'icon_bg' => true],
+            BX_DOL_STUDIO_AGENTS_TYPE_HELPERS => ['icon' => 'mi-agt-helpers.svg', 'icon_bg' => true],
             BX_DOL_STUDIO_AGENTS_TYPE_AUTOMATORS => ['icon' => 'mi-agt-automators.svg', 'icon_bg' => true],
         ];
 

+ 2 - 2
studio/template/scripts/BxBaseStudioAgentsAutomators.php

@@ -125,7 +125,7 @@ class BxBaseStudioAgentsAutomators extends BxDolStudioAgentsAutomators
                         foreach($aHelpers as $iHelperId)
                             $this->_oDb->insertAutomatorHelper([
                                 'automator_id' => $iId, 
-                                'provider_id' => $iHelperId
+                                'helper_id' => $iHelperId
                             ]);
 
                     if(($oCmts = BxDolCmts::getObjectInstance($this->_sCmts, $iId)) !== null) {
@@ -520,7 +520,7 @@ class BxBaseStudioAgentsAutomators extends BxDolStudioAgentsAutomators
             $sProviders = 'providers';
             $aProviders = array_map(function($sTitle) {
                 return _t($sTitle);
-            }, ['' => '_sys_please_select'] + $this->_oDb->getProviderBy(['sample' => 'all_pairs', 'active' => 1]));
+            }, ['' => '_sys_please_select'] + $this->_oDb->getProvidersBy(['sample' => 'all_pairs', 'active' => 1]));
 
             $aTmplVarsProviders = [];
             if(!empty($aAutomator[$sProviders]) && is_array($aAutomator[$sProviders])) {