Verified Commit 7ca77165 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(Reminder) - Adds none as option within attributes lists

Adds none in the list of attributes options
Showing with 6 additions and 1 deletion
+6 -1
......@@ -56,7 +56,7 @@ class tasksNotifications extends simplePlugin
new SetAttribute(
new SelectAttribute(
'Attributes', _('Any changes listed to set attributes will trigger a notification'),
'fdTasksNotificationsAttributes', TRUE, ['None']
'fdTasksNotificationsAttributes', TRUE
),
),
]
......@@ -189,6 +189,11 @@ class tasksNotifications extends simplePlugin
}
}
// Ensure 'None' is in the array
if (!in_array('None', $result, true)) {
array_unshift($result, 'None'); // Add 'None' at the beginning
}
return $result;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment