am-impact / amcommand

Command palette in Craft; Because you can
Other
87 stars 8 forks source link

When duplicating an entry it erases content from entry bing copied. #24

Closed julzmon closed 9 years ago

julzmon commented 9 years ago

When duplicating an entry it erases content from entry bing copied.

hubertprein commented 9 years ago

I have no trouble using this command. Does it erase the content from the entry you duplicated, or from the duplicated entry? If it erases the content from the entry you duplicated would be super weird, since the code doesn't even save that entry, it just fetches it data. Do you have an example? Fields in your entry? The more info I have, the better :)

oadslug commented 9 years ago

I also have not experienced any problems duplicating entries.

julzmon commented 9 years ago

Yes it erases the content from the entry you duplicate. If you go back original entry you're able to see the old content in the revisions. This happens with Structure entries only. I have a matrix fields with rich text editor and text fields with multiple lines.

hubertprein commented 9 years ago

Just reproduced the problem. It doesn't erase the matrix content, it simply moves it to the clone entry. I'll come up with a fix soon.

hubertprein commented 9 years ago

Please check out the latest release and let me know if your issue has been resolved.

https://github.com/am-impact/amcommand/releases/tag/1.0.1

julzmon commented 9 years ago

In a quick test it seems to be working fine now. Thanks...