You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2015-11-23 05:50:46

tyrone.wyatt
Member
Registered: 2013-02-24
Posts: 72

PDF plugin 0.85 striping out line breaks in ticket follow up and tasks

In PDF plugin 0.84.2 line breaks were shown in ticket follow up and tasks
GLPI-PDF-0.0.84.2

In PDF plugin 0.85 striping out line breaks in ticket follow up and tasks
GLPI-PDF-0.85

Offline

#2 2015-11-27 15:22:35

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: PDF plugin 0.85 striping out line breaks in ticket follow up and tasks

Do you use rich text in GLPI ?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2015-11-30 11:02:41

tyrone.wyatt
Member
Registered: 2013-02-24
Posts: 72

Re: PDF plugin 0.85 striping out line breaks in ticket follow up and tasks

No rich text in GLPI is disabled in my environment.

Last edited by tyrone.wyatt (2015-11-30 11:03:18)

Offline

#4 2016-03-01 04:06:02

tyrone.wyatt
Member
Registered: 2013-02-24
Posts: 72

Re: PDF plugin 0.85 striping out line breaks in ticket follow up and tasks

I have since upgraded to GLPI 0.90.1 and Print to pdf    1.0 but the issue persists.
yllen would you be able to help me with a fix for this bug?

Offline

#5 2016-03-04 17:04:26

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: PDF plugin 0.85 striping out line breaks in ticket follow up and tasks


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#6 2016-03-06 08:45:26

tyrone.wyatt
Member
Registered: 2013-02-24
Posts: 72

Re: PDF plugin 0.85 striping out line breaks in ticket follow up and tasks

Thanks for the help yllen.

I have applied the patch to ticketfollowup.class.php and ticket follow ups displays correctly now.
I also applied the same patch to tickettask.class.php and ticket tasks displays correctly now.
Ticket description already displays correctly.
glpi-pdf-1.0-followup-patch

Although the ticket solution doesn't display correctly since v1.0 of the pdf plugin.
glpi-pdf-1.0-solution

Offline

#7 2016-03-06 12:44:21

tyrone.wyatt
Member
Registered: 2013-02-24
Posts: 72

Re: PDF plugin 0.85 striping out line breaks in ticket follow up and tasks

I've also checked problems and changes for the display text bug in tasks, follow ups and solution.

I wasn't able to print a pdf problem with tasks without getting this error.
glpi-pdf-1.0-problemtask

I applied the follow up patch to problemtask.class.php and problems tasks displays correctly.

I applied the follow up patch to changetask.class.php and change tasks displays correctly.

Problem solution is affect by this bug
glpi-pdf-1.0-problemsolution

Change solution isn't affected, but there is a gap of space.
glpi-pdf-1.0-changesolution

Overview of text display bug:
Ticket task, ticket follow up and ticket solution affected.
Problem task and solution affected.
Change task affected.
Change solution not affected but spacing issue.

I hope this information is helpful in getting this text display bug in pdf plugin resolved.
Let me know if you need to to perform any more troubleshooting.

Last edited by tyrone.wyatt (2016-03-08 01:41:32)

Offline

#8 2016-03-08 05:45:02

tyrone.wyatt
Member
Registered: 2013-02-24
Posts: 72

Re: PDF plugin 0.85 striping out line breaks in ticket follow up and tasks

I have applied patches https://forge.glpi-project.org/projects … isions/442 and all follow ups, tasks and solutions are working okay now in tickets, problems and changes.

Thank you very much for your assistance.

I have moved the new issue of problem not printing when tasks enabled to another forum thread http://forum.glpi-project.org/viewtopic.php?id=149980

Offline

#9 2016-03-14 14:49:48

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: PDF plugin 0.85 striping out line breaks in ticket follow up and tasks


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB