Assign custom field in EVENT_REPORT_BUG_DATA
Posted: 25 Oct 2016, 09:54
class ... {
...
function init() {
plugin_event_hook( 'EVENT_REPORT_BUG_DATA', 'setFormalDate' );
}
}
function setFormalDate( $p_event, $p_bug_data ) {
$p_bug_data->due_date = time();
$p_bug_data->custom_Formal_Answer = time();
return $p_bug_data;
}
}
Only native column can be assigned. Nothing happen in custom field.
Note:
custom field
Name: Formal Answer
Type: date
Display When Reporting Issues: checked
...
function init() {
plugin_event_hook( 'EVENT_REPORT_BUG_DATA', 'setFormalDate' );
}
}
function setFormalDate( $p_event, $p_bug_data ) {
$p_bug_data->due_date = time();
$p_bug_data->custom_Formal_Answer = time();
return $p_bug_data;
}
}
Only native column can be assigned. Nothing happen in custom field.
Note:
custom field
Name: Formal Answer
Type: date
Display When Reporting Issues: checked