need the code for add note button on view.php page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
merwyn
Posts: 13
Joined: Nov 16, 2018 7:54 am

need the code for add note button on view.php page

Post by merwyn » Nov 20, 2018 2:38 am

Hi,
Where is the code for the add note button located in the mantis folder.
Need to replicate it for the update page as well.
any help would be appreciated

atrol
Site Admin
Posts: 7677
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: need the code for add note button on view.php page

Post by atrol » Nov 20, 2018 4:07 am

The code for the button can be found in file bugnote_add_inc.php

Code: Select all

<input type="submit" class="btn btn-primary btn-white btn-round" value="<?php echo lang_get( 'add_bugnote_button' ) ?>" />
Please use Search before posting and read the Manual

merwyn
Posts: 13
Joined: Nov 16, 2018 7:54 am

Re: need the code for add note button on view.php page

Post by merwyn » Nov 20, 2018 4:16 am

Ok. but i need the code of it.
After u click the add note button, it verifies if the note field has been added or not.
I want that code.

atrol
Site Admin
Posts: 7677
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: need the code for add note button on view.php page

Post by atrol » Nov 20, 2018 4:34 am

The code where the note is added can be found in bugnote_add.php
Please use Search before posting and read the Manual

merwyn
Posts: 13
Joined: Nov 16, 2018 7:54 am

Re: need the code for add note button on view.php page

Post by merwyn » Nov 20, 2018 4:58 am

In which code is it being checked if the note field is blank or not?

atrol
Site Admin
Posts: 7677
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: need the code for add note button on view.php page

Post by atrol » Nov 20, 2018 5:10 am

Empty notes are checked in function bugnote_add in file core/bugnote_api.php
Please use Search before posting and read the Manual

Post Reply