General developer forum

Availability plugin: reference to new activity that is currently being edited

 
Picture of Zimcke Van de Staey
Re: Availability plugin: reference to new activity that is currently being edited
 

Hi Tim, seems logical, however the $section parameter seems to be null when adding a new activity. It only gives you the section info when the method is called to edit a section. This is also what the documentation specifies in the base class: "@param \section_info $section Section currently being edited (null if none)". 

 
Average of ratings: -