ITSM.Agent.ChangeManagement.NotificationEvent is undefined

Moderator: crythias

Post Reply
phg
Znuny newbie
Posts: 2
Joined: 31 Jan 2016, 16:35
Znuny Version: 5.0.7
Real Name: Paul Giesberts
Company: Servicecare
Location: UK

ITSM.Agent.ChangeManagement.NotificationEvent is undefined

Post by phg »

Hi,

I have OTRS 5.0.7 with ITSM core 5.0.7. on CentOS 6.7

When I click admin --> Notification (ITSM Change Management) and then click any of the messages to edit or click "add rule" I get an error.

------------
ITSM.Agent.ChangeManagement.NotificationEvent is undefined

(?)()@http://mem15-co67-otrs/otrs/index.pl?Ac ... =24:1388:1
TargetNS.Ready/<@http://mem15-co67-otrs/otrs-web/js/js-c ... s:1137:120
n.Callbacks/j@http://mem15-co67-otrs/otrs-web/js/js-c ... js:1:26920
n.Callbacks/k.fireWith@http://mem15-co67-otrs/otrs-web/js/js-c ... js:1:27738
.ready@http://mem15-co67-otrs/otrs-web/js/js-c ... js:1:29530
I@http://mem15-co67-otrs/otrs-web/js/js-c ... js:1:29721

In internet explorer I get a bit of additional info: Unable to get property 'Init' of undefined or null reference
------------

I have googled this error and I have deleted the files in /opt/otrs/var/httpd/htdocs/js/js-cache as suggested elsewhere, but this has not fixed it.

The original install was 4.0.13 and I have then upgraded via 5.0.5, 5.0.6 and 5.0.7. I have only noticed this error on the latest 2 versions as before I was not using change management.

Could someone please give me an idea on how to fix this?

Thanks,
Paul
phg
Znuny newbie
Posts: 2
Joined: 31 Jan 2016, 16:35
Znuny Version: 5.0.7
Real Name: Paul Giesberts
Company: Servicecare
Location: UK

Re: ITSM.Agent.ChangeManagement.NotificationEvent is undefined

Post by phg »

As a bit of additional info: When I create or edit a change, the notification email sent is in German. Tickets notifications are however in English.
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: ITSM.Agent.ChangeManagement.NotificationEvent is undefined

Post by Giulio Soleni »

I have exactly the same issue after updating ver 4.0.8 to 5.0.9 and ITSM 5.0.10
On the other hand I do not have any issue on a fresh installation of 5.0.5 and ITSM 5.0.10

As far as I could see ITSM.Agent.ChangeManagement.NotificationEvent is mentioned only once within ./Kernel/Output/HTML/Templates/Standard/AdminITSMChangeNotification.tt

Code: Select all

[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
ITSM.Agent.ChangeManagement.NotificationEvent.Init({
    Localization: {
        DeleteNotificationLanguageMsg: [% Translate("Do you really want to delete this notification language?") | JSON %]
    }
});
//]]></script>
[% END %]
I do not know if can be of any value in the troubleshooting, but I compared this piece of code to the similar excerpt of ./Kernel/Output/HTML/Templates/Standard/AdminNotificationEvent.tt for which I confirm I do not have any issue:

Code: Select all

[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">//<![CDATA[
Core.Agent.Admin.NotificationEvent.Init({
    Localization: {
        DeleteNotificationLanguageMsg: [% Translate("Do you really want to delete this notification language?") | JSON %]
    }
});
//]]></script>
[% END %]
from the javascript error it seems ITSM.Agent.ChangeManagement.NotificationEvent cannot be find defined.
I am going to open a bug.
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: ITSM.Agent.ChangeManagement.NotificationEvent is undefined

Post by Giulio Soleni »

I fixed the issue.
On SysConfig look for AdminITSMChangeNotification and select ITSM Change Management -> Frontend::Admin::ModuleRegistration

For my system the entry
Frontend::Module###AdminITSMChangeNotification was customized in the following way:
Before.PNG
with no loaders as you can see.
I reset it to the default and I got the following configuration:
After.PNG
with ITSM.Agent.ChangeManagement.NotificationEvent.js loader configured.

Please phg, set the subject as [SOLVED] if the issue is fixed for you as well.

kr
Giulio
You do not have the required permissions to view the files attached to this post.
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
Post Reply