when we want to edit a email group , we get the fallowing error
the edit action es like this
$this->EmailGroups->edit(
$group_id,
[
'action' => $email['action'],
'type' => $email['type'],
'notice_type' => $email['notice_type'],
'plugin_dir' => $email['plugin_dir'],
'tags' => $email['tags']
]
);
from EmailGroups edit function , it always check if "action" is unique, this correct if we want to add new emailgroup, by in edit mode it should check if the "action" belong to the group_id that we should edit it . and when we send the edit command without 'action' it return error of action is required .
the rules should be revised to allow edit group_id with new values.