cleaning template, mail parameter (namespace issue) , correct upgrade204.sql

This commit is contained in:
sparkyx 2025-11-30 18:25:05 +01:00
parent 02285aa1d4
commit 750308d10b
3 changed files with 3 additions and 3 deletions

View file

@ -239,7 +239,7 @@ class Mail_Parameter
{
$mail_parameter=new Mail_Parameter($cnx,MAIL_SETTING_NOALYSS);
if ( $mail_parameter->smtp_type=="sendmail") {
return new Sendmail($mail_parameter->smtp_replyto,$mail_parameter->smtp_replyto);
return new \Sendmail($mail_parameter->smtp_replyto,$mail_parameter->smtp_replyto);
} elseif ($mail_parameter->smtp_type=="smtp") {
$phpmail= new SMTPMail($mail_parameter);
return $phpmail;

View file

@ -146,6 +146,7 @@ if (isset($_POST["FMOD_NAME"]))
// clean parameter
$Res= $cn_mod->exec_sql('update "parameter" set pr_value=null');
$Res= $cn_mod->exec_sql('update "parameter_extra" set pe_value=null');
$Res= $cn_mod->exec_sql('update parm_mail_server set pe_value=null');
// clean forecast
//

View file

@ -300,7 +300,6 @@ DROP FUNCTION comptaproc.jrn_add_note(int8, text);
CREATE OR REPLACE FUNCTION comptaproc.jrn_add_note(p_jrid bigint, p_note text,p_note_html text)
RETURNS void
LANGUAGE plpgsql
AS $function$
declare
tmp bigint;
@ -324,7 +323,7 @@ begin
return;
end;
$function$
;
LANGUAGE plpgsql;
CREATE TABLE public.parm_mail_server (
pe_id int4 GENERATED ALWAYS AS IDENTITY( INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 START 1 CACHE 1 NO CYCLE) NOT NULL, -- pk