Project

General

Profile

Actions

Anomalie #919

closed

fix bug on PDF export with projects

Added by Simon almost 5 years ago. Updated over 4 years 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 :

PKGP??G½Gword/media/section_image1.png½GB¸PNG  IHDR<?4GIDATx?`Ź?½7N½wɒ-Y?l?`?!¤@^x ¡%!? ??%ٲz?N?m{ÿ?²$˶l?£C¾۝ݝ??/+`o?CQ?+n ߵ®®©ÿ=?&?|?+ÿ??vþ???

Related issues 1 (0 open1 closed)

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

Actions
Actions #1

Updated by Simon over 4 years ago

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

Updated by Simon over 4 years 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>
Actions #3

Updated by Simon over 4 years ago

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

Applied in changeset linea21|r3511.

Actions #4

Updated by Simon over 4 years ago

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

Also available in: Atom PDF