add isNewSite to ResaveElements job#16924
Conversation
|
Doesn’t look like this fix is complete? Assume its value needs to be passed onto Let’s have the property be renamed to |
|
Yeah, sorry, my bad. I played with the I opted for The Alternatively, this could use the |
….com/craftcms/cms into bugfix/resaving-element-for-new-site
I do think that’s actually a better option here. Went ahead and made that change. |
Description
Same fix as here but for when we’re adding site to a section, so that this code doesn't kick in.
Steps to reproduce:
relationswith an entry type that can have just the default title; enabled for both sitesrelationssectionblogwith an entry type that contains that entries field added twice; the section should only be enabled for the primary siteblogsection, fill out the title and fully saveblogsection and enable it for the second siteblogentry in the primary site - all is good; switch to the second site - the relation is showing in the first field, not the second one; if you check theelements_sitestable for thiselementId, thecontentcolumn will benullfor the site we just enabled for this section.I wasn’t able to reproduce it on v4, but since we previously added this mechanism for v4, I opted to do this bit here. If it was a wrong call, LMK and I can target only v5.
Related issues
n/a; noticed while working on #16919