Merge branch 'sprint/189_wangyuting_fixbug' into 'sprint/189_package'

* Fix buildOperateMenu bug.

See merge request easycorp/zentaopms!3456
This commit is contained in:
王怡栋
2022-05-17 09:00:20 +00:00
+2
View File
@@ -1120,6 +1120,8 @@ class productplanModel extends model
if($type == 'view')
{
$menu .= $this->buildFlowMenu('productplan', $plan, $type, 'direct');
if(common::hasPriv('productplan', 'edit', $plan)) $menu .= html::a(helper::createLink('productplan', 'edit', $params), "<i class='icon-common-edit icon-edit'></i> " . $this->lang->edit, '', "class='btn btn-link' title='{$this->lang->edit}'");
if($plan->parent >= 0 && common::hasPriv('productplan', 'delete', $plan)) $menu .= html::a(helper::createLink('productplan', 'delete', $params), "<i class='icon-common-delete icon-trash'></i> " . $this->lang->delete, '', "class='btn btn-link' title='{$this->lang->delete}' target='hiddenwin'");
}