Hi All,
As the title says I am having issues with cloning a record.
I am using an ajax call to achieve the former as it allows me to get the new record id and open the entity form automatically. It all works fine except for when I try to maintain a field value to the same as the original record. This field is an autonumber field which uses a plugin that I have written and it has been working great so far.
What I am try to achieve is a mechanism of revision (Name and all the data within the clone record will be the same as the original, apart for a revision number which will be incremented every time a revision is done)
Every time I create a new record it gets a unique number assigned to it (which is fine in case of a "brand new" one) but as soon as I try to clone it maintaining the old number then I get an internal server error from the ajax.
I know I could bypass the plugin execution by putting a dummy yes/no field and check it's value inside it to decide what to do. But before proceeding with it I would like to know if there is a better and cleaner way to achieve this.
Thanks for you time
Christian
*This post is locked for comments
I have the same question (0)