Menu

#4287 (ok 4.1.8) Printview - Always one column too much

4.1.7
fixed
None
1
2014-02-22
2014-02-15
dennis1993
No

Hey guys,

I have found a bug. If I click in a table on "print" the printview has always one column too much. In Internet Explorer 11 the column is only in the headline and in Firefox complete.
I've attached two screenshots about it!

Thank you!

2 Attachments

Discussion

  • dennis1993

    dennis1993 - 2014-02-15

    Hey,
    thanks for your pull request!
    Yes, it works but is the IF-clause right? I think is not correct. Your IF-clause is:

    if(($colspan || $rowspan) != '')
    

    Now you check if $colspan or $rowspan true. The last part != '' ha no effect, or not?
    Mybe it is correct, but I know this code style.

    I would make it so:

    if($colspan || $rowspan)
    

    OR SO

    if(!empty($colspan) || !empty($rowspan))
    

    I don't know whats better.

     

    Last edit: dennis1993 2014-02-15
  • Marc Delisle

    Marc Delisle - 2014-02-16
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2014-02-16
    • summary: Printview - Always one coloumn too much --> (ok 4.1.8) Printview - Always one column too much
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2014-02-22
    • Status: resolved --> fixed
     
MongoDB Logo MongoDB