-
- 15 Posts
Hi all!
Got a problem with xPDO in Revo 2.2RC1.
I have created custom table with schema. Everything is right, it's not my first custom table in MODx. But when I create new object using modx->newObject(), it creates two records in DB instead of one, with the same contents.
P.S. To do this I call a snippet as a FormIt hook, bur tracing shows that it implements once, but the newObject triggers twice.
Thank you.
Unless you are calling save() twice after using newObject(), this should not happen. Sounds like you have an issue in your FormIt hook.
-
- 15 Posts
I've solved it by placing FormIt to another resource containing message like this "Thank you!" with the back link.
Anyway, thanks, opengeek, you rule!