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>
#php_admin_value sendmail_path "/usr/sbin/sendmail -t -i"
#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:
# Add this to use a custom apparmor profile when using apache php handler
<IfModule mod_apparmor.c>
AADefaultHatName sellyoursaas-instances
</IfModule>
<IfModule mod_apparmor.c>
AADefaultHatName sellyoursaas-instances
</IfModule>
ServerName myvirtualalias
@ -35,8 +36,8 @@
#AuthUserFile /etc/apache2/.htpasswd
#require valid-user
</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/>
AuthType None
Require all granted

View File

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