Page 1 of 1
Customize view page
Posted: 04 Jul 2008, 08:31
by mmesonero
i have created a customfield.
name=IdentifiantClient
Type=string
then i followed this guide ->
http://www.mantisbt.org/wiki/doku.php/m ... ssues_page
and added the value array ('selection', 'edit', 'priority', 'id', 'bugnotes_count', 'category', 'severity', 'status', 'last_updated', 'summary', 'custom_IdentifiantClient'); for the configuration option "view_issues_page_columns"
After added this configuration option I've in the Configuration Report Page :
view_issues_page_columns string 'array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary' );'
But when I display my View Issues Page I have the followed error
SYSTEM WARNING: array_keys() [function.array-keys]: The first argument should be an array
SYSTEM WARNING: Invalid argument supplied for foreach()
I'm on Mantis 1.1.2
Can you help me? I don't what I'm doing wrong

Thank you
Re: Customize view page
Posted: 04 Jul 2008, 12:28
by mmesonero
I've found my mistake. I don't use the "=" sign to define the option's value.
However I've another question. Is it possible to inherit customization view page from a project. I explain myself.
I've have a lot of project in my Mantis which are sub-project of a single one big project. So I would like to know if it's possible to define a customize view page on this project and that all sub-projects inherits from this one. Because I've about 50 sub-projects

and it'll be a lot of work to define view for all the projects.
Re: Customize view page
Posted: 10 Jul 2008, 16:13
by artgroup
I'm interested to the same inherits features.
is there this possibility?
Re: Customize view page
Posted: 10 Jul 2008, 17:07
by vzw614
I think the only thing you'll need to do is to 'link' your custom field to all of the projects you want it to show up in. Manage -> Manage Custon Field -> Click on your custom field -> Link Custom Field to Project (bottom of the screen).
Re: Customize view page
Posted: 11 Jul 2008, 09:21
by mmesonero
Hello vzw614,
I already have linked my custom field to all my projects but unfortunately it doesn't work. My sub-projects don't inherit the custom definition for the view page from the parent project.
Re: Customize view page
Posted: 14 Jul 2008, 17:50
by vzw614
In Manage -> Manage Custom Fields -> your field which check boxes do you have checked (display only on advanced, display when....)
I just tested on my install and when I link the custom field it then appears in the "view issue" page of what ever projects I've added it to. I even removed it from the parent project and it still appears in the child projects.
Re: Customize view page
Posted: 29 Jul 2008, 12:34
by amasse
Hi mmesonero,
Can you write the string that you put in the value's option ?
I have the same error and I use mantis 1.1.2.
I was trying :
array ( selection, edit, priority, id)
= array ( selection, edit, priority, id)
array = ( selection, edit, priority, id)
view_issues_page_columns = array ( selection, edit, priority, id)
Thanks
Re: Customize view page
Posted: 30 Jul 2008, 15:49
by Matze2
Hi,
I also have problem with the configuration of view_issues_page_columns, I iget the same error as mentioned in the first post.
I created this like mentioned in the Howto for 1.1.2.
The strange thing about this is that the value for the configration does not look OK. There are apostrophes around the value.
'array ( selection, edit )'
Also see the attached screenshot.
I think this could explain the error messages...
Thanks for a short answer.
Regards from Frankfurt
Re: Customize view page
Posted: 30 Jul 2008, 17:24
by vzw614
The single quotes go around each of the options, not the outside array..
= array ('selection', 'edit' )
Look in config_defaults_inc.php for how to use the array.
Re: Customize view page
Posted: 31 Jul 2008, 07:32
by Matze2
Hi,
yes, that is exactly the point. There are these single qoutes outside the array, BUT these single quotes are not from me.
I inserted the config in the gui like this:
array ( selection, edit )
or like this
array ( 'selection', 'edit' )
The result is shown in the screenshot, so I get single quotes around the whole stuff:
'array ( 'selection', 'edit' )'
But these are not from me...
Any idea
Thanks
Matze2
Re: Customize view page
Posted: 31 Jul 2008, 14:50
by giallu
Re: Customize view page
Posted: 01 Aug 2008, 09:39
by Matze2
Thank you... the workaroud seems to work...
Regards from Frankfurt
Matze