diff --git a/module/dept/model.php b/module/dept/model.php index 2873382b13..2a4fc62b28 100644 --- a/module/dept/model.php +++ b/module/dept/model.php @@ -203,6 +203,19 @@ class deptModel extends model return $linkHtml; } + /** + * Create the traingoal member link. + * + * @param int $dept + * @access public + * @return string + */ + public function traingoalMemberLink($dept, $planID) + { + $linkHtml = html::a(helper::createLink('traingoal', 'browse', "goalID={$planID}&type=company&dept={$dept->id}&"), $dept->name, '_self', "id='dept{$dept->id}'"); + return $linkHtml; + } + /** * Create the group manage members link. *