Jump to content

edit email group always return error


Blesta Addons

Recommended Posts

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

Quote

An action by that name already exists.

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...