Page 1 of 1

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

Posted: Nov 20, 2018 2:38 am
by merwyn
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

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

Posted: Nov 20, 2018 4:07 am
by atrol
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' ) ?>" />

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

Posted: Nov 20, 2018 4:16 am
by merwyn
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.

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

Posted: Nov 20, 2018 4:34 am
by atrol
The code where the note is added can be found in bugnote_add.php

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

Posted: Nov 20, 2018 4:58 am
by merwyn
In which code is it being checked if the note field is blank or not?

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

Posted: Nov 20, 2018 5:10 am
by atrol
Empty notes are checked in function bugnote_add in file core/bugnote_api.php