Skip to content

Unknown named parameter $bug_id #9

@ACNRD

Description

@ACNRD

After updating Mantis to 2.27.0 the above error popped up in the logs when opening "View Issue Details" page. I was able to pin it down to the subject() method in this plugin and fixed it by changing the code below from
function subject( $p_event, $p_chained_param, $p_bug_id) {
to:
function subject( $p_event, $p_chained_param, $p_bug_id = null, $bug_id = null ) { // fix the "Unknown named parameter $bug_id" error by adding $bug_id as parameter and allowing $p_bug_id to be null if(is_null($p_bug_id) && !is_null($bug_id)) { $p_bug_id = $bug_id; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions