Hello,
I'd like to hide 'Duplicate ID' filed on the Resolve issue tab.
Please, some one could suggest me a way for that?
Thanks in advance.
Andreas
How to hide 'Duplicate ID' field
Moderators: Developer, Contributor
-
- Posts: 4
- Joined: 23 Dec 2020, 12:22
How to hide 'Duplicate ID' field
- Attachments
-
- Untitled.png (30.45 KiB) Viewed 4233 times
Re: How to hide 'Duplicate ID' field
That depends on the value of your resolution field.
In bug_change_status.php you have the following code
config_get( 'bug_duplicate_resolution' ) is standard set to "DUPLICATE". To me it does not make much sense, actually think it is a bug.
It should read :
If you make that change, it will work as expected 
In bug_change_status.php you have the following code
Code: Select all
if( $t_resolution != config_get( 'bug_duplicate_resolution' ) ) {
?>
<!-- Duplicate ID -->
<tr>
<th class="category">
<?php echo lang_get( 'duplicate_id' ) ?>
</th>
<td>
<input type="text" class="input-sm" name="duplicate_id" maxlength="10" />
</td>
</tr>
<?php
}
It should read :
Code: Select all
if( $t_resolution == config_get( 'bug_duplicate_resolution' ) ) {

-
- Posts: 4
- Joined: 23 Dec 2020, 12:22
Re: How to hide 'Duplicate ID' field
It works!
Many thanks.
Andreas
Many thanks.
Andreas
Re: How to hide 'Duplicate ID' field
Be aware that with a future update you may have to do the change again.
I did register this as a bug but it appeared to be on purpose. So you still van indicate the issue as a duplicate even when the resolution was not stated as duplicate
I did register this as a bug but it appeared to be on purpose. So you still van indicate the issue as a duplicate even when the resolution was not stated as duplicate
