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.

Display of selectab...
 
Notifications
Clear all

Display of selectable predecessor elements is displayed incorrect

5 Posts
2 Users
0 Reactions
3,842 Views
(@basgobets)
Posts: 6
Active Member
Topic starter
 
[#2115]

In Projeqtor 4.5.1 When I want to add a predecessor to an activity and click on the spyglass to get the full list of possible predecessors the list looks strange (see attached screenshot ) (all dots). The funny thing is that you can still do a search and end up with one line of dots. If that ;line is selected, the correct activity is added as a predecessor.
It thus appears just to be a display problem


 
Posted : 27 Nov 2014 19H33
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Hi,

Issue confirmed and recorded as Ticket #1622.
It seems to happen when a date exist in the displayed list.


 
Posted : 27 Nov 2014 21H16
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Got it !!!

Wasn't easy to fix, although I found the origin...

To fix :
in /view/js/projeqtor.js, add after last line :

function getBrowserLocaleDateFormatJs() {
 return browserLocaleDateFormatJs;
}

in /view/js/projeqtorFormatter.js, replace function dateFormatter(), starting line 241, with

function dateFormatter(value) {
  fmt=top.getBrowserLocaleDateFormatJs();
  if (value.length==10) {
  	vDate=dojo.date.locale.parse(value, {selector: "date", datePattern: "yyyy-MM-dd"});
    return dojo.date.locale.format(vDate, {datePattern: fmt,formatLength: "short", fullYear: true, selector: "date"});
  } else {
  	return value;
  }
}

don't forget to clean browser cahce and test
:woohoo:


 
Posted : 27 Nov 2014 22H01
(@basgobets)
Posts: 6
Active Member
Topic starter
 

I implemented the changes and it seems to work!
Thanks for the quick fix


 
Posted : 28 Nov 2014 11H53
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Hi,

For information, this fix treats "date" fields.
Similar issue has been identified for "date+time" fileds, not fix here.
You can see this for instance listing Tickets (open a ticket and select a dupplicate throught the list).

Patch V4.5.2 fixes both issues.


 
Posted : 28 Nov 2014 11H57
Share:

Scroll to Top