Page 1 of 1

Disable notifications

Posted: 2022-10-23 10:50
by AhmedBR
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

Re: Disable notifications

Posted: 2022-10-23 16:02
by pbottcher
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.

Re: Disable notifications

Posted: 2022-10-23 17:53
by AhmedBR
Just Perfect, thanks a lot pböttcher.