CompletedController is throwing a warning when page is empty.

Created on 2 December 2024, about 1 month ago

Problem/Motivation

CompletedController is throwing a warning when items are empty.

Please see attempted solution below.

         web/modules/contrib/burndown/src/Controller/CompletedController.php
          // Check if tasks are actually completed.
          if(!empty($lane_tasks)) {. <------ added empty test around foreach loop.
            foreach ($lane_tasks as $lane_task) {
              if ($lane_task->isCompleted()) {
                $tasks[] = $lane_task;
              }
            }
          }
        }
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia purencool

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024