Forum

Since upgrade to 6....
 
Notifications
Retirer tout

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

10 Posts
4 Utilisateurs
0 Reactions
11.2 {numéro}K Vu
Damien
(@dnaton)
Posts: 248
Reputable Member
Début du sujet
 
[#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

 
Posté : 25/01/2017 3:39 pm
ANOLL
(@krowry)
Posts: 131
Estimable 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.


 
Posté : 25/01/2017 4:23 pm
Damien
(@dnaton)
Posts: 248
Reputable Member
Début du sujet
 

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

 
Posté : 25/01/2017 4:50 pm
(@babynus)
Posts: 14952
Membre 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; } }

 
Posté : 26/01/2017 10:34 am
Damien
(@dnaton)
Posts: 248
Reputable Member
Début du sujet
 

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

 
Posté : 26/01/2017 5:50 pm
Klaus
(@climb4fun)
Posts: 449
Honorable Member
 

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


 
Posté : 31/01/2017 4:38 pm
(@babynus)
Posts: 14952
Membre 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 ?


 
Posté : 31/01/2017 4:47 pm
Klaus
(@climb4fun)
Posts: 449
Honorable Member
 

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


 
Posté : 31/01/2017 5:30 pm
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 01/02/2017 1:43 am
Klaus
(@climb4fun)
Posts: 449
Honorable Member
 

Workaround confirmed working.

Thanks Babynus.

Klaus


 
Posté : 01/02/2017 9:07 am
Share:
Retour en haut