PDA

View Full Version : Uncorrect displays ASCI symbols


Dronch
15-02-07, 02:04 AM
I add new task with name (example) «"task"». Then i go to edit him, i see his name as «"task"». And after save, name of this task change to «"task"»
How fix this bug ?

Dronch
19-02-07, 09:04 PM
This is real bug. No one know how fix it?

Grut
19-02-07, 09:55 PM
I noticed that yesterday... ("test & appli" became "test &amp", wierd...) but I can't reproduce it today, everything seems to work well...
I will make more test and inform you if I find an issue.

I also have the same problem fot the task name in the gantt chart, the '&' appear like '&'
So in modules\tasks\gantt.php, I just replace that part of code line 351 :
$name = str_replace("&", "&", $name);
$name = strlen( $name ) > 34 ? substr( $name, 0, 33 ).'.' : $name ;
$name = str_repeat(' ', $level).$name

I now this is a 'quick fix' and that doesn't solve your problem but... :)

Grut
19-02-07, 09:59 PM
I've just try your sample "test", in view, edit etc, the same string is displayed.

I reinstall dotproject this morning and load all my datas from a backup... maybe something change between today and yesterday... I will investigate.

For information, I use the last beta version of easyphp to run dotproject.

Dronch
19-02-07, 10:46 PM
I think, when i (press button save) save task, symbol - " ,automaticly convert in html code - "
I look in MySQL > tasks, and see name of this task as Task_2"
How disable this convert ?

Grut
20-02-07, 02:30 AM
I'm not one of the dotproject developper but I think it's normal:
This is the way it works when you want to store (html) data in mysql and probably most of the database.
The characters of the strings are converted in special code to be stored in the db (because in some case, such characters can't be inserted in a mysql field, like the quote)

You can see http://www.netalya.com/fr/speciaux.asp for the list of special html chars.

With most of the actual browsers, if you make an html page with ' "task" ' or ' "task" ', you will see the same string "task", there is no impact on the display.

Dronch
20-02-07, 07:41 PM
Maybe you know how: When i add a new task, and in table "Assigned to Task" is empty and after pressing the button "save", makes alert: "Assigned to Task is empty".
How to make it?

caseydk
24-02-07, 10:11 PM
There is a double-escaping happening.

First, it escapes the relevant characters whenever a task is saved, then it also does it on display. You end up with this ever-escaping task name that goes on forever and ever.

It has been reported and should be fixed in the 2.1.0 release.