add isNewSite
to ResaveElements
job
#16924
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
relations
with an entry type that can have just the default title; enabled for both sitesrelations
sectionblog
with an entry type that contains that entries field added twice; the section should only be enabled for the primary siteblog
section, fill out the title and fully saveblog
section and enable it for the second siteblog
entry 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_sites
table for thiselementId
, thecontent
column will benull
for 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