This commit is contained in:
Laurent Destailleur 2022-12-19 13:06:29 +01:00
parent 2c9863e7db
commit 7db9da4769
2 changed files with 9 additions and 6 deletions

View File

@ -1,14 +1,15 @@
<VirtualHost *:80> <VirtualHost *:80>
#php_admin_value sendmail_path "/usr/sbin/sendmail -t -i" #php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
#php_admin_value mail.force_extra_parameters "-f postmaster@mydomain.com" #php_admin_value mail.force_extra_parameters "-f postmaster@mydomain.com"
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f postmaster@mydomain.com" #php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f postmaster@mydomain.com"
php_admin_value open_basedir /tmp/:/home/.../htdocs:/home/.../dolibarr_documents: php_admin_value open_basedir /tmp/:/home/.../htdocs:/home/.../dolibarr_documents:
# Add this to use a custom apparmor profile when using apache php handler # Add this to use a custom apparmor profile when using apache php handler
<IfModule mod_apparmor.c> <IfModule mod_apparmor.c>
AADefaultHatName sellyoursaas-instances AADefaultHatName sellyoursaas-instances
</IfModule> </IfModule>
ServerName myvirtualalias ServerName myvirtualalias
@ -36,7 +37,7 @@
#require valid-user #require valid-user
</Directory> </Directory>
# Leaving /public and /api, /dav, .well_known but also wrappers for document and viewimage accessible to everyone # Leaving /public and /api, /dav, .well_known but also wrappers for document, viewimage and public json/img accessible to everyone
<Directory /home/admin/wwwroot/dolibarr/htdocs/public/> <Directory /home/admin/wwwroot/dolibarr/htdocs/public/>
AuthType None AuthType None
Require all granted Require all granted

View File

@ -2427,12 +2427,14 @@ if ($action == 'create') {
} else { } else {
jQuery("input[name=\"senditdisabled\"]").prop("name", "sendit"); jQuery("input[name=\"senditdisabled\"]").prop("name", "sendit");
} }
// TODO Switch css fa-chevron-dow and add fa-chevron-up
return false; return false;
}); });
$( ".aattachtodoc" ).click(function() { $( ".aattachtodoc" ).click(function() {
console.log("We click on toggle of aattachtodoc"); console.log("We click on toggle of aattachtodoc");
jQuery(".trattachnewfilenow").toggle(); jQuery(".trattachnewfilenow").toggle();
jQuery(".truploadnewfilenow").hide(); jQuery(".truploadnewfilenow").hide();
// TODO Switch css fa-chevron-dow and add fa-chevron-up
return false; return false;
});'."\n"; });'."\n";
if (is_array(GETPOST('attachfile', 'array')) && count(GETPOST('attachfile', 'array')) && $action != 'updateline') { if (is_array(GETPOST('attachfile', 'array')) && count(GETPOST('attachfile', 'array')) && $action != 'updateline') {