mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 03:28:18 +01:00
NEW API for getting, adding, deleting and/or modifying email templates (#35853)
* NEW API for getting, adding, deleting and/or modifying email templates * removing duplicate class formmail which has been moved to a separate file * hurl file for testing the emailtemplates api * more comprehensive tests of posting a new email template, all required fields and making sure that ID is rejected * first GUI test of email templates --------- Co-authored-by: Jon Bendtsen <xcodeauthor@jonb.dk> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -2651,7 +2651,7 @@ function getModuleDirForApiClass($moduleobject)
|
||||
|
||||
if ($moduleobject == 'contracts') {
|
||||
$moduledirforclass = 'contrat';
|
||||
} elseif (in_array($moduleobject, array('admin', 'login', 'setup', 'access', 'status', 'tools', 'documents', 'objectlinks'))) {
|
||||
} elseif (in_array($moduleobject, array('admin', 'login', 'setup', 'access', 'status', 'tools', 'documents', 'objectlinks', 'emailtemplates'))) {
|
||||
$moduledirforclass = 'api';
|
||||
} elseif (in_array($moduleobject, ['contact', 'contacts', 'customer', 'thirdparty', 'thirdparties'])) {
|
||||
$moduledirforclass = 'societe';
|
||||
|
||||
Reference in New Issue
Block a user