Jump to content

Recommended Posts

Posted

when we want to edit a email group , we get the fallowing error

  Quote

An action by that name already exists.

Expand  

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.

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...