Improved rule logic for templates
This commit is contained in:
parent
4f966357cf
commit
a8273e2633
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue