Forum

JS error in Real Wo...
 
Notifications
Retirer tout

JS error in Real Work Allocation

3 Posts
2 Utilisateurs
0 Reactions
4,001 Vu
(@002514)
Posts: 68
Active Member
Début du sujet
 
[#1970]

Hi
I meet an Javascript error in the Real Work allocation menu. I can't change resource. I obtain the following error. (just for information i deleted my cache) 😉

TypeError: dojo.byId(...) is null
dojo.byId('hideNotHandled').checked=dojo.byId('listHideNotHandled').checked;

view/js/projeqtorWork.js?version=V4.4.1.0105

formInitialize();
dojo.byId('userId').value=dijit.byId('userName').get("value");
dojo.byId('idle').checked=dojo.byId('listShowIdle').checked;
dojo.byId('showPlannedWork').checked=dojo.byId('listShowPlannedWork').checked;
dojo.byId('hideDone').checked=dojo.byId('listHideDone').checked;
dojo.byId('hideNotHandled').checked=dojo.byId('listHideNotHandled').checked;
dojo.byId('displayOnlyCurrentWeekMeetings').checked=dojo.byId('listDisplayOnlyCurrentWeekMeetings').checked;
loadContent('../view/refreshImputationList.php', 'workDiv', 'listForm', false);
return true;
}

Yannick


 
Posté : 28 Août PM 19:088
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Several workarounds are possible :
1) In global parameters, on "Real Work allocation" section, set "Display only handeled tasks" to "No"
=> This fixes the issue.
2) Comment line 65 in /view/js/projeqtorWork.js

//dojo.byId('hideNotHandled').checked=dojo.byId('listHideNotHandled').checked;

Thanks for reporting the issue.
Ticket #1509 recorded to fix the issue.


 
Posté : 28 Août PM 21:088
(@babynus)
Posts: 14952
Membre Admin
 

Final fox is replace in /view/js/projeqtorWork.js, line 65

dojo.byId('hideNotHandled').checked=dojo.byId('listHideNotHandled').checked;

with

	if (dojo.byId('hideNotHandled') && dojo.byId('listHideNotHandled') ) {
	  dojo.byId('hideNotHandled').checked=dojo.byId('listHideNotHandled').checked;
	}

 
Posté : 28 Août PM 21:088
Share:
Retour en haut