Project

General

Profile

Anomalie #919

fix bug on PDF export with projects

Added by Simon over 1 year ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
admin
Target version:
Start date:
02/07/2020
Due date:
% Done:

100%

Estimated time:
2.00 h
Resolution:

Description

PDF :

TCPDF ERROR: Some data has already been output, can't send PDF file

WORD :

PK‰GP??G½Gword/media/section_image1.png½GB¸‰PNG  IHDRœ<?›4G„IDATxœ?`Ź?½7N½wɒ-Y?l?`?!¤@^x ¡%!?„ ??%ٲz?N?m{ÿ?²$˶l?£ŸC¾۝ݝ??/+`“o•?CQ?+—n ߵ®®©ÿ=?&?|?“+–ÿž??™vþ???

Related issues

Related to Anomalie #926: fix bug on Word export with projectsFermé02/27/2020

Actions

Associated revisions

Revision 3511 (diff)
Added by Simon over 1 year ago

fixing PDF export bug - closing #919

History

#1

Updated by Simon over 1 year ago

  • Subject changed from fix bug on Word / PDF export to fix bug on PDF export with projects
#2

Updated by Simon over 1 year ago

bug to to an error of bracket in `DisplayListProjectByLevelsWithProgression()` function.

following javascript block was sent anyway when display.php was included :

<script>
                    $(document).ready(function() {

                        // $('.progressbar[title]' ).tooltip({ effect: 'slide', opacity: 0.8});
                        function animate_progress(object) {
                            var w = $(object).width() / $(object).parent().width() * 100 + '%'; // get width in percentage
                            $( object ).css('visibility', 'visible').css('width', '0%'); // set element visible and width to 0
                            $( object ).animate({width : w}, getRandomInt(2000,4000));
                        }

                        /**
                        * Waypoints animation - Method A
                        * animate when scrolled to object position
                        */
                        var waypoints = $('div.project-progression div.pprogressbar > div').waypoint({
                              handler: function(direction) {
                                animate_progress($(this.element));
                                this.destroy();
                              },
                          offset: 'bottom-in-view'
                        });

                        function animate_progress(object) {
                            var w = $(object).width() / $(object).parent().width() * 100 + '%'; // get width in percentage
                            $( object ).css('visibility', 'visible').css('width', '0%'); // set element visible and width to 0
                            $( object ).animate({width : w}, getRandomInt(2000,4000));
                        }
                    });
                    </script>
#3

Updated by Simon over 1 year ago

  • Status changed from Nouveau to Fermé
  • % Done changed from 0 to 100

Applied in changeset linea21|r3511.

#4

Updated by Simon over 1 year ago

  • Related to Anomalie #926: fix bug on Word export with projects added

Also available in: Atom PDF