Coder Social home page Coder Social logo

Tags with 0 as value not displaying. about mpdf HOT 4 CLOSED

finwe avatar finwe commented on September 24, 2024
Tags with 0 as value not displaying.

from mpdf.

Comments (4)

mburnicki avatar mburnicki commented on September 24, 2024

I'd like to submit a pull request to fix this, and I'd like to do this for the stable branch, so this will be fixed in 6.1. Is this OK, and will the fix be merged upstream to the development branch?
I'm new to github and not too familiar with its "best practices".

from mpdf.

finwe avatar finwe commented on September 24, 2024

The 6.x branch is frozen for non-critical fixes. This is not a cricital fix, so please base your PR on the development branch and the fix will be available in 7.x releases.

from mpdf.

mburnicki avatar mburnicki commented on September 24, 2024

I just had a closer look at the relevant code in different mpdf versions.

The problem was observed with 6.0, which is still used by the dokuwiki project.
The line labelled 'fix' is the proposed fix from a posting in the old mpdf forum, which worked for me.
In 6.1 and -dev the code has been changed, and though it doesn't match the original proposal for a fix, it seems to work properly:

6.0: if (empty($arrayaux[$i][0]) && $arrayaux[$i][16]!=='0' && empty($arrayaux[$i][7])) {
fix: if (empty($arrayaux[$i][0]) && $arrayaux[$i][0]!=='0' && $arrayaux[$i][16]!=='0' && empty($arrayaux[$i][7])) {
6.1: if (empty($arrayaux[$i][0]) && (isset($arrayaux[$i][16]) && $arrayaux[$i][16] !== '0') && empty($arrayaux[$i][7])) {
dev: if (empty($arrayaux[$i][0]) && (isset($arrayaux[$i][16]) && $arrayaux[$i][16] !== '0') && empty($arrayaux[$i][7])) {

I've just downloaded the mpdf 6.1 zip file from git here, replaced the original mpdf code in my dokuwiki installation by the 6.1 version, and the problem I had observed with 6.0 doesn't occur anymore.

So I think this bug can simply be closed.
Thanks.

from mpdf.

finwe avatar finwe commented on September 24, 2024

Cool. Thanks for your insight!

from mpdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.