If you clone a message type, the fields are not cloned.

Classifying as a bug report, since it's contrary to user expectations, and frequently surfaces both in the Commerce Message issue queue, and internally.
Patch to follow.

Files: 
CommentFileSizeAuthor
#1 1983138-clone-field-instances-1.patch1.45 KBbojanz
PASSED: [[SimpleTest]]: [MySQL] 69 pass(es).
[ View ]

Comments

bojanz’s picture

Status:Active» Needs review
StatusFileSize
new1.45 KB
PASSED: [[SimpleTest]]: [MySQL] 69 pass(es).
[ View ]

Here we go.

The menu_get_object call is a bit ugly, but there's no other way to get the entity that's being cloned.
I could also go with storing just the original message type name in the form state.

amitaibu’s picture

Status:Needs review» Fixed

The menu_get_object() is indeed a little ugly, but if in the future we will want the full object, better get it in already.

Committed, thanks.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.