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.
Increase the length of summary field.
Moderators: Developer, Contributor
Re: Increase the length of summary field.
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
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.
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.
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?
Where is the problem? Can't you find the file bug_report_page.php?
Re: Increase the length of summary field.
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")
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.
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
to
If this is not clear enough, I don't know how to help you, maybe other users understand your problem
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 ) ?>" />
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 ) ?>" />
Re: Increase the length of summary field.
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.
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
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