Closed (outdated)
Project:
Scheduled Updates
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Oct 2016 at 23:18 UTC
Updated:
16 Apr 2026 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
yusufhmI was able to fix this issue by modifying code in src/Plugin/UpdateRunner/EmbeddedUpdateRunner.php.
Comment #3
bkosborneI tried following your steps to reproduce but got a bit confused.
You shouldn't have to manually add these "date" fields. The scheduled update types should be added to the basic page automatically (or I guess you could do it manually) but they are entity reference fields that reference the scheduled update type. Is this what you meant?
I tried this by adding two scheduled update types as you outlined, one that sets the state to published and then another that sets it to archived. I was able to set both of these dates to the same time, run the scheduler, and the node was first set to published and then was set to archived as expected.
Can you elaborate a bit more on the setup and the expected behavior?
Comment #4
yusufhmI've stopped working on the project since then, I'll see if I can contact another developer who was working on it.
Basically what was happening, if you look at my patch, the array merge (+=) was not working properly;
$field_update_ids[$field_id]had the correct update ids, but they were not being added to$entity_update_ids.I think it was an issue with indices or something, which is why I had to replace it with a loop. I am now wondering if it could have been an issue with a specific PHP version.
Comment #5
joshua.boltz commentedI was having a similar issue getting this module to work properly with Workbench Moderation.
I applied the patch, but it did not help with my issue.
My issue is:
When I choose `Publishing status` as the Update field, it works fine. But, if I choose `Moderation state`, when cron runs, it says it processes the job, but the node never publishes. I have a WB transition of Draft->Published, so I would think when I save the node to a new draft, if the scheduled job runs, it should send it to published state.
Comment #6
tedbowHmmm this issue was never set to needs review so the patch gets tested.
Also I haven't had time to look through this yet but it probably need test correct?
Comment #7
smustgrave commentedAdded a test testEmbeddedRunnerMultipleReferenceFields that shows this shouldn't be an error on 3.0.x, if still is we can always re-open
Thanks all.