View Issue Details

IDProjectCategoryView StatusLast Update
0017917mantisbtcode cleanuppublic2016-10-20 11:07
Reporterdregad Assigned To 
PrioritylowSeveritytweakReproducibilityN/A
Status newResolutionopen 
Product Version1.2.18 
Summary0017917: Remove magic constants in filter_api.php / view_all_set.php
Description

As part of reviewing PR https://github.com/mantisbt/mantisbt/pull/549 I noted we're using magic constant '6'.

We should define it, as well as other values for type (and possibly 'simple' and 'advanced' also) in constants_inc.php.

TagsNo tags attached.

Relationships

related to 0021619 closeddregad Use constants instead of hardcoded values for filter view types 

Activities

dregad

dregad

2015-09-11 08:29

developer   ~0051448

atrol, I fail to see a relationship with 0020102, can you clarify ?

atrol

atrol

2015-09-11 09:22

developer   ~0051449

I fail to see a relationship
Me too ;-)
Should have been 17919

cproensa

cproensa

2016-10-20 07:48

developer   ~0054300

i doubt if include this in PR 862
i fear that it will modify many more pages and will complicate the merge...

what do you think? fix it at a later step, or go once for all?

dregad

dregad

2016-10-20 11:07

developer   ~0054305

This is a low priority, code cleanup task so I'm fine with postponing this. The refactoring PR is big and complex enough as it is ;-)