project Websites / Gitlab Issue Listing Script avatar

websites/Gitlab-Issue-Listing-Script#45: Exception on milestone view page

Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.5
Created: 26-Aug-22 15:03


Milestone views are currently broken on the master branch

Fatal error: Uncaught TypeError: end(): Argument [[#1](/issue/websites/Gitlab-Issue-Listing-Script/1.html)](/issue/websites/Gitlab-Issue-Listing-Script/1.html) ($array) must be of type array, null given in /var/www/html/lib/utils.php:214 Stack trace: [#0](/issue/websites/Gitlab-Issue-Listing-Script/0.html) /var/www/html/lib/utils.php(214): end(NULL) [[#1](/issue/websites/Gitlab-Issue-Listing-Script/1.html)](/issue/websites/Gitlab-Issue-Listing-Script/1.html) /var/www/html/lib/router.php(13): GILSUtils::sef2qs('/milestone/webs...') [#2](/issue/websites/Gitlab-Issue-Listing-Script/2.html) /var/www/html/index.php(14): GILSRouter->route('/milestone/webs...') [#3](/issue/websites/Gitlab-Issue-Listing-Script/3.html) {main} thrown in /var/www/html/lib/utils.php on line 214

Toggle State Changes


assigned to @btasker

Caused by this typo

"milestone" => end($path_spslit)

When did that sneak in?

Looks like it was yesterday in commit 74023356

Whoops. must've been clicked into the editor whilst trying to use another window or something.


mentioned in commit 6e033328aba9e5f5c28338d0ce31be908a01e92a

Commit: 6e033328aba9e5f5c28338d0ce31be908a01e92a 
Author: B Tasker                            
Date: 2022-08-26T16:06:31.000+01:00 


Fix typo in variable name (websites/Gitlab-Issue-Listing-Script#45)

Commit 74023356 introduced a typo - there wasn't an intent to edit that line.

+1 -1 (2 lines changed)