From the customer screen I created some template ticket but when I try to use any of them the message below:
Can not locate object method " GetUserData " via package " Kernel :: System :: CustomerUser " at / opt/otrs/KIX4OTRS/Kernel/System/TemplateGenerator.pm line 1458 .
URL: http://191.1.X.X/otrs/customer.pl?Actio ... faultSet=8 (With any template)
Can anyone give help with GetUserData method ? In the agent interface works without errors .
Following code that I believe is related to the error :
Code: Select all
# cleanup
$ Param { Text } = ~ s / $ $ End Tag + / - / gi ;
# KIX4OTRS - capeIT
my $ Tag2 ;
if ( $ Param { UserID } ) {
$ Tag = $ Start . ' OTRS_Agent_ ' ;
# EO - KIX4OTRS capeIT
$ $ Start = Tag2 . ' OTRS_CURRENT_ ' ;
my% CurrentUser = $ Self - > { UserObject } - > GetUserData (
UserID = > $ Param { UserID } ,
NoOutOfOffice => 1
);
Html # quoting of content
if ( $ param { RichText } ) {
for ( sort keys % CurrentUser ) {
next if $ CurrentUser { $ _ } ! ;
$ CurrentUser { $ _ } = $ Self - > { HTMLUtilsObject } - > ToHTML (
String = > $ CurrentUser { $ _ } ,
);
}
}
$ HashGlobalReplace - > ( " $ tag | $ Tag2 " , CurrentUser % ) ;
# Replace other needed stuff
$ Param { Text } = ~ s / $ $ OTRS_FIRST_NAME Start End / $ { CurrentUser } UserFirstName / GXMs ;
$ Param { Text } = ~ s / $ $ OTRS_LAST_NAME Start End / $ { CurrentUser } UserLastName / GXMs ;
# cleanup
$ Param { Text } = ~ s / $ $ End Tag + / - / gi ;
$ Param { Text } = ~ s / $ $ End Tag2 + / - / gi . ;
# KIX4OTRS - capeIT
}
# EO - KIX4OTRS capeIT
Can not locate object method " ReplacePlaceHolder " via package " Kernel :: System :: TemplateGenerator " at / opt/otrs/KIX4OTRSITSMConfigManagement/Kernel/Modules/CustomerTicketMessage.pm line 260