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: 16 Nov 2018, 12:54

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

Post 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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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' ) ?>" />
Please use Search before posting and read the Manual
merwyn
Posts: 13
Joined: 16 Nov 2018, 12:54

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

Post 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.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

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: 16 Nov 2018, 12:54

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

Post by merwyn »

In which code is it being checked if the note field is blank or not?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post by atrol »

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