Increase the length of summary field.

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sameerj
Posts: 7
Joined: 18 Dec 2009, 07:29

Increase the length of summary field.

Post by sameerj »

Hello

I want to increase the length of summary field while reporting a bug.
one thing i done is that i changed the length in the db.

VARCHAR(128) to VARCHAR(225).


But again there is a UI validation for this.
If user start typing a text in summary field, it can not type anything beyond the certain length. (128)

When i viewed the source of the bug_report_page.php, i can see the maxlength parameter set to 128.

<!-- Summary -->
<tr class="row-2">
<td class="category">
<span class="required">*</span>Summary </td>
<td>
<input tabindex="6" type="text" name="summary" size="105" maxlength128 value="" />
</td>
</tr>


but where i have to change this. i mean not getting that page in Mantis folder.
atrol
Site Admin
Posts: 7919
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Increase the length of summary field.

Post by atrol »

I am not sure whether I understand your question,
you have to change one line in file bug_report_page.php from maxlength="128" to maxlength="225"
Be aware that there might be other pages which could be affected, I didn't check
Please use Search before posting and read the Manual
sameerj
Posts: 7
Joined: 18 Dec 2009, 07:29

Re: Increase the length of summary field.

Post by sameerj »

atrol wrote:I am not sure whether I understand your question,
you have to change one line in file bug_report_page.php from maxlength="128" to maxlength="225"
Be aware that there might be other pages which could be affected, I didn't check

but how can i do this. that is my question?
it is difficult to find the page which contains the code given above.
atrol
Site Admin
Posts: 7919
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Increase the length of summary field.

Post by atrol »

I wrote: you have to change one line in file bug_report_page.php from maxlength="128" to maxlength="225"
Where is the problem? Can't you find the file bug_report_page.php?
Please use Search before posting and read the Manual
sameerj
Posts: 7
Joined: 18 Dec 2009, 07:29

Re: Increase the length of summary field.

Post by sameerj »

I found bug_report_page.php.
but
Code which i given above (maxlength="128" to maxlength="225") is not present on this page.

So i want help for this purpose only.
Where can i find the page to change the code (maxlength="128" to maxlength="225")

atrol wrote:I wrote: you have to change one line in file bug_report_page.php from maxlength="128" to maxlength="225"
Where is the problem? Can't you find the file bug_report_page.php?
atrol
Site Admin
Posts: 7919
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Increase the length of summary field.

Post by atrol »

I don't know which version of MantisBT you use, if it's version 1.2.0 then change line 406 in file bug_report_page.php
from

Code: Select all

<input <?php echo helper_get_tab_index() ?> type="text" name="summary" size="105" maxlength="128" value="<?php echo string_attribute( $f_summary ) ?>" />
to

Code: Select all

<input <?php echo helper_get_tab_index() ?> type="text" name="summary" size="105" maxlength="225" value="<?php echo string_attribute( $f_summary ) ?>" />
If this is not clear enough, I don't know how to help you, maybe other users understand your problem
Please use Search before posting and read the Manual
sameerj
Posts: 7
Joined: 18 Dec 2009, 07:29

Re: Increase the length of summary field.

Post by sameerj »

Thank you. it's done now.initially i didn't find that code in bug_report_page.php.
tetsunami
Posts: 26
Joined: 21 Apr 2010, 14:45

Re: Increase the length of summary field.

Post by tetsunami »

well now i have the same problem but with a custom field of the type MULTIPLE SELECTION

so the default size of the field its about 5 lines i want to change it in order of the 10 so where its the parameter of the custom fields size

please some help :oops:
Post Reply