From 89ce4a3a8fcff60b198e04be17689354609c6cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E5=A4=A7=E9=9B=AA?= <2291335922@qq.com> Date: Mon, 24 Jan 2022 20:34:07 +0800 Subject: [PATCH] =?UTF-8?q?#2733=20=E6=89=B9=E5=87=86=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E4=B8=AD=E7=BC=BA=E5=B0=91=E5=BD=93=E5=89=8D=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E7=9A=84=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6=EF=BC=8C=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=90=8E=E6=98=BE=E7=A4=BA=E6=97=A0=E6=AD=A4=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../approval/process_definition.object.yml | 54 ++----------------- 1 file changed, 3 insertions(+), 51 deletions(-) diff --git a/packages/standard-objects/process/approval/process_definition.object.yml b/packages/standard-objects/process/approval/process_definition.object.yml index a8b34f46f3..2290a30d50 100644 --- a/packages/standard-objects/process/approval/process_definition.object.yml +++ b/packages/standard-objects/process/approval/process_definition.object.yml @@ -154,6 +154,7 @@ fields: multiple: true label: Field Update reference_to: action_field_updates + reference_to_field: name depend_on: - object_name filtersFunction: !!js/function | @@ -162,23 +163,6 @@ fields: return "object_name eq '" + dependValues.object_name + "'"; } } - optionsFunction: !!js/function | - function () { - - let selects = ["name", "label"] - let options = { - $select: selects.toString() - }; - let records = Creator.odata.query('action_field_updates', options, true); - let result = []; - records.forEach(function (item) { - result.push({ - label: item.label, - value: item.name - }); - }); - return result; - } group: Final Approval Actions final_approval_workflow_notifications_actions: type: lookup @@ -228,6 +212,7 @@ fields: multiple: true label: Field Update reference_to: action_field_updates + reference_to_field: name depend_on: - object_name filtersFunction: !!js/function | @@ -236,23 +221,6 @@ fields: return "object_name eq '" + dependValues.object_name + "'"; } } - optionsFunction: !!js/function | - function () { - - let selects = ["name", "label"] - let options = { - $select: selects.toString() - }; - let records = Creator.odata.query('action_field_updates', options, true); - let result = []; - records.forEach(function (item) { - result.push({ - label: item.label, - value: item.name - }); - }); - return result; - } group: Final Rejection Actions final_rejection_workflow_notifications_actions: type: lookup @@ -303,6 +271,7 @@ fields: multiple: true label: Field Update reference_to: action_field_updates + reference_to_field: name depend_on: - object_name filtersFunction: !!js/function | @@ -311,23 +280,6 @@ fields: return "object_name eq '" + dependValues.object_name + "'"; } } - optionsFunction: !!js/function | - function () { - - let selects = ["name", "label"] - let options = { - $select: selects.toString() - }; - let records = Creator.odata.query('action_field_updates', options, true); - let result = []; - records.forEach(function (item) { - result.push({ - label: item.label, - value: item.name - }); - }); - return result; - } group: Recall Actions recall_workflow_notifications_actions: type: lookup