symbiote / silverstripe-queuedjobs

A module that provides interfaces for scheduling jobs for certain times.
BSD 3-Clause "New" or "Revised" License
57 stars 73 forks source link

Can't edit job because RunAsID does not exist #437

Closed mikeyc7m closed 3 days ago

mikeyc7m commented 3 days ago

Module version(s) affected

4.12.4

Description

QueuedJobDescriptor runs getCMSFields() which tries to do a getName() of the field RunAsID but the field does not exist and eveything dies. It's so sad.

How to reproduce

try to click on a queued job.

Possible Solution

I'm guessing that QueuedJobDescriptor uses $runAs = $fields->fieldByName('Root.Main.RunAsID'); which doesn't work.

Additional Context

No response

Validations

mikeyc7m commented 3 days ago

Ah my mistake, code elsewhere was removing it.

mikeyc7m commented 3 days ago

I have no idea why it doesn't work, so I'll leave this open in case someone else has the issue or resolves it.

mikeyc7m commented 3 days ago

Ah yeah it was my code after all.