/** * information about unreachable issues cause of missing project assignment * * @param $data_row */ function remark_unreachable_issues($data_row) { $user_id = $data_row['user_id']; $assigned_project_id = $data_row['assigned_project_id']; $assigned_to_project = userprojectapi::get_assigned_to_project($user_id, $assigned_project_id); $unreachable_issue = userprojectapi::get_unreachable_issue($assigned_to_project); if ($unreachable_issue) { $target_version_id = $data_row['target_version_id']; $target_version = ''; if (strlen($target_version_id) > 0) { $target_version = version_get_field($target_version_id, 'version'); } echo '<a href="search.php?project_id=' . $assigned_project_id . userprojectapi::prepare_filter_string() . '&handler_id=' . userprojectapi::get_link_user_id($user_id) . '&sticky_issues=on' . '&target_version=' . $target_version . '&sortby=last_updated' . '&dir=DESC' . '&hide_status_id=-2' . '&match_type=0">'; echo wordwrap(plugin_lang_get('remark_noProject'), 30, '<br />'); echo '</a>'; echo '<br/>' . PHP_EOL; } }