I got this warning when I landed at the project/issues/<project> page:

warning: Invalid argument supplied for foreach() in /home/alienbrain/projects/pool/issuetracking/src/drupal/sites/all/modules/project_issue/views/handlers/project_issue_handler_filter_issue_version.inc on line 105.

Looks like it's because I don't have any versions/releases. The filter already excludes itself on such case, but a check is needed in the handler's query() to make sure it won't do its thing if the filter was excluded and no value present.

Comments

aclight’s picture

StatusFileSize
new2.99 KB

I marked #437670: Error when clicking on Project from the Issues view as a duplicate of this issue. That issue brought up the fact that we also weren't properly checking in init_version_info() of the same handler to make sure that one or more of the version terms was active. The attached patch makes that check, and also incorporates the check from alienbrain's patch in the original issue.

dennys’s picture

aclight's patch works for me, suggest to commit it, thanks.

leop’s picture

aclight's patch works for me as well

AmrMostafa’s picture

Status: Needs review » Reviewed & tested by the community

Come on people, you can RTBC! :)

(I didn't test aclight's patch since I don't suffer from the original issue he marked as dup)

dww’s picture

Status: Reviewed & tested by the community » Fixed

Reproduced the bug, reviewed the patch, tested and confirmed the fix. All good. ;) Committed to HEAD. Thanks, folks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.