View Issue Details

IDProjectCategoryView StatusLast Update
0025072mantisbtfilterspublic2025-03-01 17:48
Reporterelpoutro Assigned Tocommunity  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.18.0 
Target Version2.19.0Fixed in Version2.19.0 
Summary0025072: Could not use the FilterBugList filter with "Permalink"
Description

I could not use the FilterBugList filter (https://github.com/mantisbt-plugins/FilterBugList) with "Permalink". I think that every plugin filters are impacted by this issue and my modification may resolve it in any cases.

Steps To Reproduce

1) Add the "FilterBugList" plugin in Manits (https://github.com/mantisbt-plugins/FilterBugList)
2) Use this filter by adding one or more bug number and valid this filter
3) Try to set a Permalink: => Mantis give you a URL.
4) Use this URL in other navigator
=> You may only see the mantis you gave at step (2)... But you get all mantis (no filter set)

TagsNo tags attached.

Relationships

related to 0035179 closeddregad Could not use plugins filters with "Permalink" 

Activities

elpoutro

elpoutro

2018-12-10 10:23

reporter   ~0061065

Proposed solution: https://github.com/mantisbt/mantisbt/pull/1423

Related Changesets

MantisBT: master a759e186

2018-12-16 22:34

elpoutro

Committer: dregad


Details Diff
Add plugin filters management in search.php

Before modification, filters created through plugins (using MantisFilter
class and EVENT_FILTER_FIELDS hook) cannot be used in "Permalink"
functionality.

Now, the data about filters mapped by EVENT_FILTER_FIELDS hook are
managed by search.php witch is used to analyse permanent links.

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

MantisBT: master-2.27 5dcb6cb1

2025-02-25 19:40

dregad


Details Diff
Fix Undefined array key with Plugin Filters

When following a permalink including a Plugin Filter field, search.php
throws an "Undefined array key" SYSTEM WARNING.

This is due to an incorrect default in gpc_get_*() calls to get the
filter value, introduced in commit a759e186f1f7b0e1f07a182b454131e8b5e6d020
(Issue 0025072).

Fixes 0035179
Affected Issues
0025072, 0035179
mod - search.php Diff File