Disable notifications

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Disable notifications

Post by AhmedBR » 2022-10-23 10:50

Good day,

Is there a way to disable this notification:

Code: Select all

The new record has been saved successfully. 
Other than editing incCommon.php?

Currently I just comment these two lines:

Code: Select all

			if(Request::val('record-added-ok')) {
				//$msg = $Translation['new record saved'];
				//$class = 'alert-success';
Thanks
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1638
Joined: 2018-04-01 10:12

Re: Disable notifications

Post by pbottcher » 2022-10-23 16:02

Hi,

you can add

Code: Select all

	unset($_REQUEST['record-added-ok']);
to the hooks/TABLENAME.php -> TABLENAME_header function if you want to diable it for one table.
Otherwise add it to the hooks/__global.php, that shall do for all tables.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

AhmedBR
AppGini Super Hero
AppGini Super Hero
Posts: 327
Joined: 2013-09-19 10:23

Re: Disable notifications

Post by AhmedBR » 2022-10-23 17:53

Just Perfect, thanks a lot pböttcher.
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper

Post Reply