View more context

 

kinglozzer

https://github.com/silverstripe/silverstripe-admin/issues/911

Show 1 attachment(s)
GitHub  
Re-enable ability to auto select a tab from a URL anchor · Issue #911 · silverstripe/silverstripe-admin

SS 4 I want to deep link to a GridField item's Settings tab (for example). Allegedly you used to be able to do this by appending #Root_Settings to the URL for it (maybe in SS3?), which would de...

Hide attachment content
Mo

@kinglozzer Cool, thanks, I thought SS3 used to let you do this!

Mo

Hmm, I wonder what the easiest way to add ss-tabset back to CMS Forms is...

Mo

Ugh, at this rate, this project I am working on is going to end up with me forking all the core modules!

bendubuisson

Has anyone got experience with the queued jobs module? I'm queuing a job DEFINITELY with an argument passed in constructor (can also see it in the job entry in DB) but it keeps erroring saying too few arguments to constructor

bendubuisson
  1. When defining the constructor for your job, be aware that the QueuedJobService will, when loading the job for execution, create an object of your job type without passing any parameters. Therefore, if you want to pass parameters when initially creating the job, make sure to provide defaults (eg __construct($param=null)), and that their presence is detected before being used. So the base rules for __constructors are
  2. they must have default parameters, as the JobService will re-create the job class passing through no constructor params
  3. you must have logic in your constructor that can determine if it's been constructed by the job service, or by user-land code, and whether the constructor params are to be used.
👍 (1)