我正在尝试在创建工作流时添加将待办事项分配给特定用户的功能。我似乎无法弄清楚值是如何传递到下拉列表的。我想使用现有的框架,而不是绕道而行。有人能帮忙吗?
似乎下拉列表值以某种方式最终出现在此选项列表对象中,但不确定它们的设置位置。
我正在尝试在创建工作流时添加将待办事项分配给特定用户的功能。我似乎无法弄清楚值是如何传递到下拉列表的。我想使用现有的框架,而不是绕道而行。有人能帮忙吗?
似乎下拉列表值以某种方式最终出现在此选项列表对象中,但不确定它们的设置位置。
Could you please provide a more detailed explanation of what you are trying to accomplish? When creating a new workflow and after selecting a module, you can set conditions. To assign it to a specific user, you can choose the condition
Created By : (Users) User Name
is xyz
Is this what you are asking? Or are you asking how to create a new task?
1)打开“includes/utils/EditViewUtils.php”
2) 搜索以下行开头的块:(在版本 5.4.0 中为 #331 行):
if($fieldname == 'assigned_user_id' && $is_admin==false && $profileGlobalPermission[2] == 1 && ($defaultOrgSharingPermission[getTabid($module_name)] == 3 或 $defaultOrgSharingPermission[getTabid($module_name)] == 0))
条件的第一部分应该是:
$users_combo = get_select_options_array(get_user_array(FALSE, "Active", $assigned_user_id,'private'), $assigned_user_id);
3) 将“私人”更改为“非私人”(或其他任何内容),以便该行现在显示:
$users_combo = get_select_options_array(get_user_array(FALSE, "Active", $assigned_user_id,'not private'), $assigned_user_id);
现在您可以将 ToDo 任务分配给任何人。