Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

JS error in Real Wo...
 
Notifications
Clear all

JS error in Real Work Allocation

3 Posts
2 Users
0 Reactions
4,053 Views
(@002514)
Posts: 68
Active Member
Topic starter
 
[#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


 
Posted : 28 Aug 2014 19H23
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 28 Aug 2014 21H27
babynus
(@babynus)
Posts: 14966
Main Contributor 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;
	}

 
Posted : 28 Aug 2014 21H53
Share:

Scroll to Top