symbiote / silverstripe-queuedjobs

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

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

Closed mikeyc7m closed 4 months ago

mikeyc7m commented 4 months 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 4 months ago

Ah my mistake, code elsewhere was removing it.

mikeyc7m commented 4 months 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 4 months ago

Ah yeah it was my code after all.