Upload via GUI (267 Dateien)
This commit is contained in:
@@ -31,6 +31,7 @@ $actionLabels = [
|
||||
'assign_staff' => 'Mitarbeiter zuweisen',
|
||||
'add_tag' => 'Tag hinzufügen',
|
||||
'auto_reply' => 'Auto-Antwort senden (Textbaustein)',
|
||||
'close' => 'Ticket schließen (wird angelegt, aber sofort geschlossen)',
|
||||
'reject' => 'Ticket verwerfen (z.B. Spam)',
|
||||
];
|
||||
|
||||
@@ -80,10 +81,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
'assign_staff' => $actStaff[$i] ?? '',
|
||||
'add_tag' => trim($actTag[$i] ?? ''),
|
||||
'auto_reply' => $actCanned[$i] ?? '',
|
||||
'reject' => '1',
|
||||
'reject', 'close' => '1',
|
||||
default => '',
|
||||
};
|
||||
if ($t !== 'reject' && $value === '') continue;
|
||||
if (!in_array($t, ['reject', 'close'], true) && $value === '') continue;
|
||||
$actionsToSave[] = ['action_type' => $t, 'action_value' => $value];
|
||||
}
|
||||
if (!$actionsToSave) $errors[] = 'Bitte mindestens eine Aktion festlegen.';
|
||||
@@ -213,6 +214,7 @@ function render_action_value_selects(array $departments, array $priorities, arra
|
||||
<?php else: ?>
|
||||
<span class="rule-val rule-val-auto_reply muted" style="<?= $sel('auto_reply') === '' ? '' : 'display:none' ?>; align-self:center; font-size:.85rem">Noch keine Textbausteine angelegt – <a href="/staff/canned_responses.php">jetzt erstellen</a>.</span>
|
||||
<?php endif; ?>
|
||||
<span class="rule-val rule-val-close muted" style="<?= $sel('close') === '' ? '' : 'display:none' ?>; align-self:center; font-size:.85rem">Das Ticket wird angelegt und gleich geschlossen. Es gibt keine Benachrichtigung an Mitarbeiter oder Kunden.</span>
|
||||
<span class="rule-val rule-val-reject muted" style="<?= $sel('reject') === '' ? '' : 'display:none' ?>; align-self:center; font-size:.85rem">Keine weitere Einstellung nötig.</span>
|
||||
<?php
|
||||
}
|
||||
@@ -258,7 +260,7 @@ function render_action_value_selects(array $departments, array $priorities, arra
|
||||
</td>
|
||||
<td class="muted" style="font-size:.82rem">
|
||||
<?php foreach ($r['actions'] as $a): ?>
|
||||
<div><?= e($actionLabels[$a['action_type']] ?? $a['action_type']) ?><?= $a['action_type']!=='reject' ? ': ' . e($a['action_value']) : '' ?></div>
|
||||
<div><?= e($actionLabels[$a['action_type']] ?? $a['action_type']) ?><?= !in_array($a['action_type'], ['reject', 'close'], true) ? ': ' . e($a['action_value']) : '' ?></div>
|
||||
<?php endforeach; ?>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user