Improved rule logic for templates

This commit is contained in:
Maximilian Giller 2023-03-08 00:22:16 +01:00
parent 4f966357cf
commit a8273e2633

View file

@ -111,6 +111,11 @@ class Template
public function isValidFor(Activity $activity): bool
{
// Is any trigger active?
if (!$this->triggerOnlyOnEmptyTitle && !$this->triggerAfterTimeout) {
return false;
}
if ($this->triggerOnlyOnEmptyTitle && $activity->title != "") {
return false;
}