Witam
Stworzyłem nowy moduł do którego chcę podpiąć listę pracowników
czyli wchodzę w RB wybieram nowe pole pracownicy , type select "multiple Value" RB -> Contact i juz mam, ale w tym miejscu mam listę wszystkich firm a potrzebuję tylko "my company"
Napisałem public function w klasie: Custom_TurnOnMachinesCommon
public static function employees_crits(){
return array('(company_name'=>CRM_ContactsCommon::get_main_company(),'|related_companies'=>array(CRM_ContactsCommon::get_main_company()));
}
i podpiołem w RB do tego pola rekordu:
Value display function: Custom_TurnOnMachinesCommon::employees_crits
oraz:
Field generator function: CRM_ContactsCommon::QFfield_contact
I mam błąd:
Type: E_WARNING (2)
Message: strip_tags() expects parameter 1 to be string, array given
File: /var/www/epesi/modules/Utils/RecordBrowser/RecordBrowser_0.php
Line=768
error backtrace:
[PHP core called function]
function called: handle_epesi_error(2, "strip_tags() expects parameter 1 to be string, array given", "/var/www/epesi/modules/Utils/RecordBrowser/RecordBrowser_0.php", 768, Array (#55))
File: /var/www/epesi/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 768
function called: strip_tags(Array ("1", Array (#1)))
[PHP core called function]
function called: show_data(Array (), Array (), Array (), true)
File: /var/www/epesi/modules/Utils/TabbedBrowser/TabbedBrowser_0.php
line 120
function called: call_user_func_array(Array (Object (Utils_RecordBrowser), "show_data"), Array (Array (#0), Array (#0), Array (#0), true))
File: /var/www/epesi/modules/Utils/TabbedBrowser/TabbedBrowser_0.php
line 85
function called: display_contents(Array (1, Array (#2), Array (#4), false), 1, true)
File: /var/www/epesi/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 1534
function called: body()
File: /var/www/epesi/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 2644
function called: administrator_panel()
File: /var/www/epesi/modules/Utils/RecordBrowser/RecordBrowser_0.php
line 2634
function called: record_management("TurnOnMachines")
[PHP core called function]
function called: admin()
File: /var/www/epesi/include/module.php
line 924
function called: call_user_func_array(Array (Object (Utils_RecordBrowser), "admin"), Array ())
File: /var/www/epesi/include/module.php
line 844
function called: get_html_of_module(Object (Utils_RecordBrowser), null, "admin")
File: /var/www/epesi/include/module.php
line 129
function called: display_module(Object (Utils_RecordBrowser), null, "admin")
File: /var/www/epesi/modules/Base/Admin/Admin_0.php
line 31
function called: pack_module("Utils_RecordBrowser", null, "admin")
[PHP core called function]
function called: body()
File: /var/www/epesi/include/module.php
line 924
function called: call_user_func_array(Array (Object (Base_Admin), "body"), Array ())
File: /var/www/epesi/include/module.php
line 844
function called: get_html_of_module(Object (Base_Admin), null, null)
File: /var/www/epesi/modules/Base/Box/Box_0.php
line 142
function called: display_module(Object (Base_Admin))
File: /var/www/epesi/include/epesi.php
line 246
function called: body()
File: /var/www/epesi/include/epesi.php
line 291
function called: go(Object (Base_Box))
File: /var/www/epesi/process.php
line 41
function called: process("__action_module__=%2FBase_Box%7C0%2FBase_Admin%7C5adeda73e12844b05a3a911a0fd381a4_r%2FUtils_RecordBrowser%7C0%2FUtils_TabbedBrowser%7C0&%2FBase_Box%7C0%2FBase_Admin%7C5adeda73e12844b05a3a911a0fd381a4_r%2FUtils_RecordBrowser%7C0%2FUtils_TabbedBrowser%7C0_page=1", "")