Tuleap Community Edition development and releases are no longer public. You have until September 30th to download packages and sources in Tuleap project. You can contact the team if you need further assistance.

    •  
      request #22623 Cannot add a first column to a tracker report table
    Infos
    #22623
    Rahul Mittal (rahulmittal)
    2021-08-11 08:41
    2021-08-10 19:54
    24196
    Details
    Cannot add a first column to a tracker report table

    Default installation of latest version, for the tracker Releases, shows a default report with no columns and adding a first column produces this error:

    Argument #1 ($var) must be of type Countable Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer_Table.class.php:1914

    Being PP8.0, there needs to be checks to ensure if the var is null or not an initialized array.

    I changed it to this in my installation for a quick fix:

     is_countable($session_table_columns) ? count($session_table_columns) : 0;

     

    Trackers
    development
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-08-11
    Attachments
    Empty
    References
    Referenced by request #22623

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2021-08-11 07:53

    Patch under review here: gerrit #23662.


    • Summary
      -PHP 8.0 error : Report/Tracker_Report_Renderer_Table.class.php 
      +Cannot add a first column to a tracker report table 
    • Status changed from Under implementation to Under review
    • Reported in version changed from 12.11 to development
    User avatar
    Thomas Gerbet (tgerbet)2021-08-11 07:41

    Hello,

    I confirm the issue. Thanks for the report.


    • Status changed from New to Under implementation
    • Assigned to changed from None to Thomas Gerbet (tgerbet)