View Issue Details

IDProjectCategoryView StatusLast Update
0017517mantisbttaggingpublic2014-12-08 02:08
Reporteratrol Assigned Todregad  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.0dev 
Target Version1.3.0-beta.1 
Summary0017517: Link "Attached Issues" on tag_view_page.php does not work
Description

You get the following page after clicking "Attached Issues" on tag_view_page.php

SYSTEM WARNING: 'Invalid argument supplied for foreach()' in '/var/www/mantisbt/core/gpc_api.php' line 259

Steps To Reproduce

Click on a tag on manage_tags_page.php or view.php
Click "Attached Issues" on tag_view_page.php

TagsNo tags attached.

Relationships

has duplicate 0017576 closedatrol Link "Attached Issues" on tag_view_page.php does not work 

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 2a13d775

2014-07-24 13:26

dregad


Details Diff
Fix 'Attached Issues' link on tag_view_page.php

After clicking the link, Mantis triggers SYSTEM WARNING: 'Invalid
argument supplied for foreach()' in 'gpc_api.php' line 259.

The root cause is actually an additional E_RECOVERABLE_ERROR (Argument 2
passed to gpc_get_string_array() must be of the type array, integer
given) which is thrown in search.php but hidden with default error
display settings.

Regression introduced by 5458f7020999317b35f403fa2a0e477d6182ec12.

This resolves the problem by changing the default value passed to
gpc_get_string_array() by search.php from (integer) 'META_FILTER_ANY'
to 'array( META_FILTER_ANY )'.

Fixes 0017517
Affected Issues
0017517
mod - search.php Diff File