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.

Since upgrade to 6....
 
Notifications
Clear all

Since upgrade to 6.0.7, some notes lost their "formatting"

10 Posts
4 Users
0 Reactions
11.2 K Views
Damien
(@dnaton)
Posts: 248
Active Member
Topic starter
 
[#4041]

Hello,

I updated ProjeqTor from 6.0.5 to 6.0.7 one hour ago.

When I return in my projects, activities, tickets.... (all screen which have a field "notes"), somenotes lost their formatting 🙁

If I create a new notes, sometime the formatting is take into account, sometimes no
If I try to modify a note which lost her formatting, it works sometimes, and sometimes not 🙁

And one another thing special : when I input text, the cursor "jump" sometime to another line !!!!

The field "Description seems to be not concerned,

Has someone th same problem ? How can I retrieve the good "formatting)

Thanks.


Regards,
Damien
-----------------------------------------------
.
ProjeQtOr v12.1.0 - Apache v2.4.56 - MariaDB v10.4.28 - PHP v8.2.4
Plugins installed : PersonalizedTranslation 1.6 - ScreenCustomization 7.2

 
Posted : 25 Jan 2017 15H39
ANOLL
(@krowry)
Posts: 131
Active Member
 

Hello Dnaton ,

I have reproduced your test case and it is possible that this is an anomaly , i have the same problem.

Anomaly recorded as Ticket #2520.


 
Posted : 25 Jan 2017 16H23
Damien
(@dnaton)
Posts: 248
Active Member
Topic starter
 

Thanks.

Roll back to 6.0.5 : it's not possible to work (for me) in this situation

  • Too many old notes and description ave lost their formatting and are no more readeable
  • re formatting can sometime be applied, and sometime not
  • CK Editor has a really special behavior (cursor jump from a line to another, from a position to another and erase part of my text
  • New notes (but other fields like description) take formatting into account and sometime no
  • ....

It's wiser to wait for the patch (in my situation in any case)


Regards,
Damien
-----------------------------------------------
.
ProjeQtOr v12.1.0 - Apache v2.4.56 - MariaDB v10.4.28 - PHP v8.2.4
Plugins installed : PersonalizedTranslation 1.6 - ScreenCustomization 7.2

 
Posted : 25 Jan 2017 16H50
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Try and replace in tool/projeqtor.php, lines 2816:2882 from

function isTextFieldHtmlFormatted($val) {
	if (strtolower(substr($val,0,5))=='
' and strtolower(substr(rtrim($val,"rn"),-6))=='
') { return true; } else { return false; } }

to

function isTextFieldHtmlFormatted($val) {
  $test=strtolower(substr(ltrim($val),0,10));
	if (substr($test,0,5)=='
' or substr($test,0,4)=='
    ' or substr($test,0,4)=='
      ') { return true; } else { return false; } }

 
Posted : 26 Jan 2017 10H34
Damien
(@dnaton)
Posts: 248
Active Member
Topic starter
 

Hello Babynus

It works fine : all formatting are again here 🙂 and correctly apply if I create new note.

For the other problem (cursor that jump from one to other line, or erase what I type), I think I have found the problem : plugin ADBLOCK is reponsible, and specialy the Easyprivacy List :blink:

Why, I don't still know but the problem source is identified : I have desactived this list and all works fine now.


Regards,
Damien
-----------------------------------------------
.
ProjeQtOr v12.1.0 - Apache v2.4.56 - MariaDB v10.4.28 - PHP v8.2.4
Plugins installed : PersonalizedTranslation 1.6 - ScreenCustomization 7.2

 
Posted : 26 Jan 2017 17H50
Klaus
(@climb4fun)
Posts: 449
Contributor
 

Hi Babynus,

I made upgrade to V6.0.8 today. The issue describe in this ticket below, still exists. In V. 6.0.5 it format's correct. I didn't try your workaround so far.

Regards,
Klaus


 
Posted : 31 Jan 2017 16H38
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,
The workaround is included in V6.0.8.

But it may be uncomplete.
Can you please post some exemples of texts that are not correctly taken into account ?


 
Posted : 31 Jan 2017 16H47
Klaus
(@climb4fun)
Posts: 449
Contributor
 

Here two screenshots: one of notes and another on description.
It's the same in IE and in FF.


 
Posted : 31 Jan 2017 17H30
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Quick fix could be to replace lines 2876:2883 in /tool.projeqtor.php
from

function isTextFieldHtmlFormatted($val) {
  $test=strtolower(substr(ltrim($val),0,10));
	if (substr($test,0,5)=='
' or substr($test,0,4)=='
    ' or substr($test,0,4)=='
      ') { return true; } else { return false; } }

to

function isTextFieldHtmlFormatted($val) {
  $test=strtolower(substr(ltrim($val),0,10));
	if (substr($test,0,1)=='<') {
		return true;
	} else {
		return false;
	}
}

This will work if all your users use Rich Text Editors.
But if some use some plain text editor, this may be lead to isses., but possibily less serious than present one.


 
Posted : 01 Feb 2017 1H43
Klaus
(@climb4fun)
Posts: 449
Contributor
 

Workaround confirmed working.

Thanks Babynus.

Klaus


 
Posted : 01 Feb 2017 9H07
Share:

Scroll to Top