fix module is not mandatory in mail_templates
This commit is contained in:
parent
00069da946
commit
c3c7a386d8
@ -11,7 +11,7 @@
|
|||||||
* Copyright (C) 2011-2016 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
* Copyright (C) 2011-2016 Alexandre Spangaro <aspangaro@open-dsi.fr>
|
||||||
* Copyright (C) 2015 Ferran Marcet <fmarcet@2byte.es>
|
* Copyright (C) 2015 Ferran Marcet <fmarcet@2byte.es>
|
||||||
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||||
* Copyright (C) 2018-2021 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2023 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -305,13 +305,7 @@ if (empty($reshook)) {
|
|||||||
$ok = 1;
|
$ok = 1;
|
||||||
foreach ($listfield as $f => $value) {
|
foreach ($listfield as $f => $value) {
|
||||||
// Not mandatory fields
|
// Not mandatory fields
|
||||||
if ($value == 'joinfiles') {
|
if (in_array($value, ['joinfiles', 'content', 'content_lines', 'module'])) {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if ($value == 'content') {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if ($value == 'content_lines') {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user