Skip to content

Commit

Permalink
[Bug]: 新建 批准步骤时分配的批准人选择不了对象中相关用户字段 #6881
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed May 24, 2024
1 parent 28b113b commit d85c6cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fields:
}
var object_name = Creator.odata.get("process_definition", pid, "object_name").object_name;
var userFields = _.filter(Creator.getObject(object_name).fields, function(field){
return (field.type === 'lookup' || field.type === 'master_detail') && field.omit != true && field.reference_to === 'users'
return (field.type === 'lookup' || field.type === 'master_detail') && field.omit != true && (field.reference_to === 'users' || (field.reference_to === 'space_users' && field.reference_to_field === 'user'))
});
_.each(userFields, function(field){
options.push({label:field.label, value:field.name});
Expand Down

0 comments on commit d85c6cd

Please sign in to comment.