Edgewall Software

Ticket #7512: 7512-r9194.patch

File 7512-r9194.patch, 591 bytes (added by blynch1@…, 2 years ago)

Patch against trunk to allow the numerical 0 to be displayed in SQL Reports

  • .py

    old new  
    453453            for header_group in header_groups: 
    454454                cell_group = [] 
    455455                for header in header_group: 
    456                     value = unicode(result[col_idx] or '') 
     456                    value = unicode(result[col_idx] is None and 
     457                                    result[col_idx] or '') 
    457458                    cell = {'value': value, 'header': header, 'index': col_idx} 
    458459                    col = header['col'] 
    459460                    col_idx += 1