You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.
The __construct() function in the Reportback class currently does a lot of extra work whenever the class is instantiated. This is useful for when creating a new Reportback, but conflicts when just loading reportbacks via the class and the construct method always runs first. So best to move this code out of the constructor to avoid having multiple of the same DB queries happening in a single instantiation. If loading Reportbacks in other template code, then replace code to use new class methods to get Reportback data (get() or find()).
The text was updated successfully, but these errors were encountered:
The
__construct()
function in theReportback
class currently does a lot of extra work whenever the class is instantiated. This is useful for when creating a new Reportback, but conflicts when just loading reportbacks via the class and the construct method always runs first. So best to move this code out of the constructor to avoid having multiple of the same DB queries happening in a single instantiation. If loading Reportbacks in other template code, then replace code to use new class methods to get Reportback data (get()
orfind()
).The text was updated successfully, but these errors were encountered: