Page 1 of 1

Increase the length of summary field.

Posted: 31 Mar 2010, 05:28
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.

Re: Increase the length of summary field.

Posted: 31 Mar 2010, 08:05
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

Re: Increase the length of summary field.

Posted: 01 Apr 2010, 10:53
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.

Re: Increase the length of summary field.

Posted: 01 Apr 2010, 11:41
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?

Re: Increase the length of summary field.

Posted: 03 Apr 2010, 11:28
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?

Re: Increase the length of summary field.

Posted: 03 Apr 2010, 15:39
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

Re: Increase the length of summary field.

Posted: 05 Apr 2010, 05:12
by sameerj
Thank you. it's done now.initially i didn't find that code in bug_report_page.php.

Re: Increase the length of summary field.

Posted: 08 Jul 2010, 17:48
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: