Page 1 of 1

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

Posted: 20 Nov 2018, 07:38
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: 20 Nov 2018, 09:07
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: 20 Nov 2018, 09:16
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: 20 Nov 2018, 09:34
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: 20 Nov 2018, 09:58
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: 20 Nov 2018, 10:10
by atrol
Empty notes are checked in function bugnote_add in file core/bugnote_api.php