Doraemon
New Member
Greetings,
I have a table to hold some profile details and some elements duplicated from the joomla user table (like username, name, email and password)
I put a JUser plugin on the form to allow the creation of new joomla users, also I put row id = -1 and key = user_id on the advanced options tab to allow existing user to edit his own record.
Now this is working well when creating a new user. On edit instead, current profile data are shown correctly, but when I hit save it gives me a duplicate primary keys on my table and a username and email already exist on joomla users table like it's trying to add the record instead of update the original one.
What I'm doing wrong?
Best regards,
Angelo
Fabrik 3.1b
Joomla 3.1.5
I have a table to hold some profile details and some elements duplicated from the joomla user table (like username, name, email and password)
I put a JUser plugin on the form to allow the creation of new joomla users, also I put row id = -1 and key = user_id on the advanced options tab to allow existing user to edit his own record.
Now this is working well when creating a new user. On edit instead, current profile data are shown correctly, but when I hit save it gives me a duplicate primary keys on my table and a username and email already exist on joomla users table like it's trying to add the record instead of update the original one.
What I'm doing wrong?
Best regards,
Angelo
Fabrik 3.1b
Joomla 3.1.5