';
print '';
print img_picto('', $elementPicto, 'class="pictofixedwidth"');
@@ -419,14 +426,13 @@ foreach ($listofnotifiedevents as $notifiedevent) {
$inputfieldalreadyshown++;
}
// New entry input fields
- if (empty($inputfieldalreadyshown) || !preg_match('/^HOLIDAY/', $notifiedevent['code'])) {
+ if (empty($inputfieldalreadyshown) || !$codehasnotrigger) {
$s = ''; // Do not use type="email" here, we must be able to enter a list of email with , separator.
print $form->textwithpicto($s, $langs->trans("YouCanUseCommaSeparatorForSeveralRecipients").' '.$langs->trans("YouCanAlsoUseSupervisorKeyword"), 1, 'help', '', 0, 2);
}
print ' | ';
print '';
- $labelfortrigger = 'AmountHT';
// Notification with threshold
$inputfieldalreadyshown = 0;
foreach ($conf->global as $key => $val) {
@@ -434,7 +440,7 @@ foreach ($listofnotifiedevents as $notifiedevent) {
continue;
}
- if (!preg_match('/^HOLIDAY/', $notifiedevent['code'])) {
+ if (!$codehasnotrigger) {
print $langs->trans($labelfortrigger).' >= ';
print ' ';
@@ -442,7 +448,7 @@ foreach ($listofnotifiedevents as $notifiedevent) {
}
}
// New entry input fields
- if (!preg_match('/^HOLIDAY/', $notifiedevent['code'])) {
+ if (!$codehasnotrigger) {
print $langs->trans($labelfortrigger).' >= ';
}
print ' | ';
@@ -457,7 +463,7 @@ print '';
print '
';
-print '';
+print '';
print '';