Leftjoin table not updating after edit
Leftjoin table not updating after edit
I have an issue when i try to edit the fields of the tables im joining dont update, but if i modify the fields of the table im not joining it update correctly, dont know what im missing
This discussion has been closed.
Replies
If you are trying to edit data of joined tables, you need to also submit the joined table's primary id column data. That will let the server-side libraries know which row in the joined tables needs to be updated.
Allan
Sorry for the late response but yes you were right, thanks for the help
Hi! I am suffering the same problem. Where do you submit the joined table primary id?
Include it in your Editor form as a
hidden
field type.Allan
Thanks Allan.
I still can't get this to work - maybe I'm missing something obvious.
On the server side, I have joined 3 tables like so:
Then in the editor I have the following:
The data displays perfectly, however when I try to update a field I get the following error:
An SQL error occurred: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'enqitem.enqitemid' in 'field list'
In the debug I can see the following:
This is where it fails, as enqitemid doesn't exist in the stock table.
What have I messed up?
Ah no - that isn't you messing up, its me! That's a bug in 1.8.0 I'm afraid. This commit fixes it and that will be released in 1.8.1 (very soon), or you can grab the updated file from the repo.
Allan
Nice one Allan - thats fixed it!
Your support on here is incredible - appreciate the quick responses.
Cheers mate.