-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected update of non-submitted Entry from another Section #62
Comments
Just to add to this, since posting, I've also noticed that it doesn't seem to matter what entry was created beforehand, it seems to soft delete it anyways. By that, I mean, I created an a new entry in |
@stevenjwright Slightly unrelated but I am trying to use Sprig with the guest plugin and I cant get errors to work. Did you manage to get those working? |
@philipboomy I've actually got this to work in the end with Sprig - what's happening for you at the moment, are you getting any errors? Happy to help how I can 👍 |
Thanks for replying. I can get it to post but I cant get it to show any errors if I leave out a field. I wonder if its because of the way Craft assign the new entry variable after submitting. Did you manage to get that part working? |
@philipboomy Oh I see - sorry, read your post early hours so didn't read properly. I don't actually think I did get it to show any errors for me. What's your use case? Are you trying to do some field validation or something, or are you needing the errors for debugging? Just trying to think of a workaround for you! |
@stevenjwright No worries :) I would like to show errors for validations to the submitter. Might have to write a custom module or not use Sprig. I just dont want to reinvent the wheel now that we got a Guest Entry Plugin. |
Description
When saving an entry from the front-end, an entry with the same title has its sectionId and typeId updated in the entries database table.
Steps to reproduce
sectionA
), title123-456-789
.sectionB
.sectionB
'sUID
as a hardcoded value.Url Parameter
ofl
as the new entry'sTitle
.Url Parameter
ofl
as a plain text fieldactiveLicenseKey
.Session ID
as a plain text fieldsessionId
.l=123-456-789
.sectionA
will now not be shown on the entry view in the CMS, and its row in theentries
table of the database has had its originaltypeId
andsectionId
be updated to that of the entry forsectionB
.Additional info
I should say that when this occurs, there is still a new additional record in the database for the new entry that has been submitted. The new entry in
sectionB
is in full working order. If I manually change thetypeId
andsectionId
back for the original entry, it sits back in the entries view in the CMS, but with aURI
value that correlates to the new entry insectionB
.Craft Pro 3.4.29.1
7.3.13
MySQL 5.5.5
Code and a Video of this happening are available if you require 👍
The text was updated successfully, but these errors were encountered: