Page 1 of 1

Is there a way to hide Description field?

Posted: 28 Aug 2013, 03:23
by seizai
I put this in config_inc.php but the description field still show.
$g_bug_report_page_fields = array(
'category_id',
'handler',
'summary',
'description',
'attachments',
);

Something I missed out?

another case...

I already hide tag function

$g_tag_view_threshold = NOBODY;
$g_tag_attach_threshold = NOBODY;

However in admin account under Manage, it still show Manage Tags. Is there a way to hide this too?

Re: Is there a way to hide Description field?

Posted: 28 Aug 2013, 06:20
by atrol
seizai wrote:I put this in config_inc.php but the description field still show.
$g_bug_report_page_fields = array(
'category_id',
'handler',
'summary',
'description',
'attachments',
);

Something I missed out?
Yes
remove the line with 'description' ;-)
seizai wrote:I already hide tag function

$g_tag_view_threshold = NOBODY;
$g_tag_attach_threshold = NOBODY;

However in admin account under Manage, it still show Manage Tags. Is there a way to hide this too?
add

Code: Select all

$g_tag_edit_threshold = NOBODY;

Re: Is there a way to hide Description field?

Posted: 28 Aug 2013, 06:43
by seizai
opps.. sorry I post wrong code. I already took out the description & it still shows..

$g_bug_report_page_fields = array(
'category_id',
'handler',
'summary',
'attachments',
);


and

is there any code to control threshold for manage columns in myaccount?

TQ :mrgreen:

Re: Is there a way to hide Description field?

Posted: 28 Aug 2013, 06:55
by seizai
seizai wrote:opps.. sorry I post wrong code. I already took out the description & it still shows..

$g_bug_report_page_fields = array(
'category_id',
'handler',
'summary',
'attachments',
);


and

is there any code to control threshold for manage columns in myaccount?

TQ :mrgreen:
I follow this - http://www.mantisbt.org/forums/viewtopi ... =3&t=19987 - and it shows 2 manage columns in my account 8O

is there any way to hide from my account?

Re: Is there a way to hide Description field?

Posted: 28 Aug 2013, 08:51
by atrol
seizai wrote:opps.. sorry I post wrong code. I already took out the description & it still shows..

$g_bug_report_page_fields = array(
'category_id',
'handler',
'summary',
'attachments',
);
Sorry, I didn't check myself.
This is a known bug http://www.mantisbt.org/bugs/view.php?id=11472
seizai wrote: and

is there any code to control threshold for manage columns in myaccount?
Please don't mix different topics in one thread as this is hard to follow up.

Re: Is there a way to hide Description field?

Posted: 29 Aug 2013, 10:58
by seizai
atrol wrote:
seizai wrote:opps.. sorry I post wrong code. I already took out the description & it still shows..

$g_bug_report_page_fields = array(
'category_id',
'handler',
'summary',
'attachments',
);
Sorry, I didn't check myself.
This is a known bug http://www.mantisbt.org/bugs/view.php?id=11472
Those 2 link down already

Re: Is there a way to hide Description field?

Posted: 29 Aug 2013, 13:47
by atrol
seizai wrote:Those 2 link down already
I tried to contact the user who is hosting git.mantisforge.org some weeks ago to setup the server again.
Unfortunately this did not happen until now (and maybe will never happen)
Maybe I will find some time to fix the bug (shouldn't be too hard) next weekend, but I can't promise anything.

Re: Is there a way to hide Description field?

Posted: 02 Sep 2013, 18:29
by atrol
atrol wrote: Maybe I will find some time to fix the bug (shouldn't be too hard) next weekend, but I can't promise anything.
I was wrong.This is not a bug as the Description field is a mandatory field.
This can't be changed in MantisBT 1.2.x as there should be a new configuration option like $g_allow_empty_description with default setting to OFF to have 100% backward compatibility. Furthermore this would require deeper tests, as an empty description field might introduce regressions at various other places.
For future version there is a more general concept needed where every field can be mandatory or not, where every field can be visible on report page or not if if is not mandatory ....

If you want a quick and dirty hack in your own installation you have just to remove the following lines in file bug_report_page.php

Code: Select all

	<tr <?php echo helper_alternate_class() ?>>
		<td class="category">
			<span class="required">*</span><?php print_documentation_link( 'description' ) ?>
		</td>
		<td>
			<textarea <?php echo helper_get_tab_index() ?> name="description" cols="80" rows="10"><?php echo string_textarea( $f_description ) ?></textarea>
		</td>
	</tr>