Skip to content

Deprecation warning on settings page

DaveD requested to merge DaveD/reporterror:attrib-settings into master
User deprecated function: Attributes passed to CRM_Core_Form::add() are not an array.

CRM_Core_Error::deprecatedWarning('Attributes passed to CRM_Core_Form::add() are not an array.') (Line: 376)
CRM_Core_Form->add('text', 'reporterror_bots_regexp', 'Bots to ignore', 1) (Line: 142)
CRM_ReportError_Admin_Form_Settings->buildQuickForm() (Line: 629)

This doesn't seem to be a deprecation really and is likely just a copy/paste extra parameter that snuck in. It doesn't make sense for attributes, and it also doesn't make sense that this was intended to be the required parameter since this field doesn't seem like something required.

Merge request reports

Loading