Closed IRooc closed 3 years ago
Looking into this now.
Just did a PULL from staging to our local dev environment and it pulled the draft but published the item as well.
Looks like its a Umbraco version thing :( - works on our base install (which is quite old v8.1) - on fresh v8.15 we do see thls issue)
having a look to see if we can find out why.
I wonder if it might be related to this issue: https://github.com/umbraco/Umbraco-CMS/issues/10695
yes - Looks something like that :(
line : 106 of the content serializer
published.Add(new XElement("Published", item.IsCulturePublished(culture),
new XAttribute("Culture", culture)));
is returning true and false on the same site depending on how its called 😕
Will see if i can identify why - and report into issue if its the same thing
I think its not the same issue, but it is debatably a umbraco bug.
if you have a variant with a single culture and you unpublish the single culture. then the publishedCultures value of the content item still contains the culture although the overall item.published value = false.
I am guessing when you completly unpublish an item by unpublishing all its languages - that doesn't wipe the publishedCultures value but it does set the master unpublished value.
we can work around this in uSync. and if i can work out where this happens in Umbraco.Core i will log an issue on the main repo. because i think this is confusing.
Workaround for this issue, in uSync - will be part of next uSync release.
Describe the bug We have two servers, staging and production. Publishing items on staging and publish to server production works fine. But when we unpublish on staging and call "publish to production". The dialog mentions that the Published boolean will be set to false (for the default culture) but on the target (production) the changelog is "Save" and "Publish" instead of unpublish.
Staging log:![image](https://user-images.githubusercontent.com/5981147/127134252-24255c6e-bca9-4c99-8afa-63e7714d0383.png)
Production log:![image](https://user-images.githubusercontent.com/5981147/127134208-b5f28d04-5478-4425-b56d-54fe457f60ce.png)
Version (please complete the following information):
To Reproduce Steps to reproduce the behavior: We have a 'vary by culture' doctype setup but currently only with 1 default culture en-GB
Expected behavior The item is also unpublished on production
Screenshots Change log on staging before publish![image](https://user-images.githubusercontent.com/5981147/127135210-33d72b54-2978-4ddf-93ca-da11192cead9.png)
Report on staging after publish![image](https://user-images.githubusercontent.com/5981147/127135389-a318afe9-dda2-416a-b5c6-d2ab318590e4.png)