View Issue Details

IDProjectCategoryView StatusLast Update
0005696mantisbtbugtrackerpublic2005-07-23 02:31
Reporterlucians Assigned Tothraxisp  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Fixed in Version1.0.0rc1 
Summary0005696: Custom Field not shown in manage_custom_field_page.php after creation
Description

Fresh new install of the 1.0.0a3 version.

TagsNo tags attached.

Relationships

has duplicate 0005721 closedthraxisp Custom fields number 15 and 16 do not appear 
has duplicate 0005737 closedthraxisp Cannot add custom fields 
has duplicate 0005846 closedthraxisp New Custom field doesn't Display in List 
has duplicate 0005852 closedthraxisp Custom fields do not display 
has duplicate 0005877 closedthraxisp Upgrade from 0.18.2 to 1.0.0a3 
has duplicate 0005891 closedthraxisp We cannot view Custom Field and add them in a project. 
has duplicate 0005922 closedthraxisp Manage Custom Fields 
has duplicate 0005986 closedthraxisp Problèem after a Creat Custom Field 
has duplicate 0005993 closedthraxisp Customized Fields Not Showing Up 
has duplicate 0006122 closedthraxisp first custom field cannot be generated 
related to 0005820 closedthraxisp Value of t_project_id is always empty on mantis_custom_field_page.php 
child of 0005460 closedvboctor Critical Issues to Fix for Mantis 1.0.0 Release 

Activities

lucians

lucians

2005-06-01 10:57

reporter   ~0010321

I think is related to 0005689 issue .

craigkendall

craigkendall

2005-06-01 23:47

reporter   ~0010324

Last edited: 2005-06-01 23:51

I just installed Mantis 1.0.0a3 as a new install (no upgrade, but first install) and appear to be experiencing this. I have tried serveral times to add a custom field (Date Required set to date) and can't get it to add. Haven't checked database to see if it was added, but will check.

I checked and there are three entries in my database where I tried to add my custom field. Though all three are in the database, they don't show up anywhere. Either in the list of custom fields or on the submit issue screen where it is suppposed to be an option to fill in. Maybe I'm missing something here.

eurayle

eurayle

2005-06-02 02:49

reporter   ~0010325

Last edited: 2005-06-02 02:52

Having the same problem here. The query in the custom_field_get_ids function (custom_field_api.php) will only show custom fields already assigned to a project:

JOIN $t_custom_field_project_table as cfpt on cft.id = cfpt.field_id

I don't know whether removing just the ON condition is appropriate or not, i.e.:

JOIN $t_custom_field_project_table as cfpt #on cft.id = cfpt.field_id

So my current workaround is to comment out the JOIN line above and placing the $t_custom_field_project_table in the FROM clause:

FROM $t_custom_field_table as cft, $t_custom_field_project_table as cfpt
#JOIN $t_custom_field_project_table as cfpt on cft.id = cfpt.field_id

malaussena

malaussena

2005-06-02 04:18

reporter   ~0010326

confirmed with last CVS Head

thraxisp

thraxisp

2005-06-03 12:06

reporter   ~0010349

Fixed in CVS.

Originated from confugion / merging of custom_field_get_ids() and custom_field_get_linked_ids(). The former will now always return all ids. The latter can take a project id (or array of project ids) and returns only those fields linked to the project.

return_dynamic_filters.php -> 1.8
view_all_set.php-> 1.55
view_filters_page.php -> 1.37
core/custom_field_api.php -> 1.54
core/filter_api.php -> 1.114