Rare issue when copying a form.
-
I’ve found an issue with the PHP uniqid function generating the same ID on my test server. It seems all the IDs are generated at the very same microsecond and the provided prefix is not doing its job because most of the times it is the same string – the field $type.
This way, the “Insert Saved Form” function does not work correctly.I’ve fixed this by concatenating an auto-increment (the $x actually) at the end of the return value from the getUniqueItemID() function inside the copyForm() function.
- The topic ‘Rare issue when copying a form.’ is closed to new replies.