@@ -54,18 +54,7 @@ public function getEntity(mixed $entity)
54
54
*/
55
55
public function getAttributes (string $ entityType , array $ skipAttributes = ['textarea ' , 'image ' , 'file ' , 'address ' ]): array
56
56
{
57
- $ attributes [] = [
58
- 'id ' => 'lead_pipeline_stage_id ' ,
59
- 'type ' => 'select ' ,
60
- 'name ' => 'Stage ' ,
61
- 'lookup_type ' => 'lead_pipeline_stages ' ,
62
- 'options ' => collect (),
63
- ];
64
-
65
- return array_merge (
66
- parent ::getAttributes ($ entityType , $ skipAttributes ),
67
- $ attributes
68
- );
57
+ return parent ::getAttributes ($ entityType , $ skipAttributes );
69
58
}
70
59
71
60
/**
@@ -82,25 +71,31 @@ public function getActions(): array
82
71
'id ' => 'update_lead ' ,
83
72
'name ' => trans ('admin::app.settings.workflows.helpers.update-lead ' ),
84
73
'attributes ' => $ this ->getAttributes ('leads ' ),
85
- ], [
74
+ ],
75
+ [
86
76
'id ' => 'update_person ' ,
87
77
'name ' => trans ('admin::app.settings.workflows.helpers.update-person ' ),
88
78
'attributes ' => $ this ->getAttributes ('persons ' ),
89
- ], [
79
+ ],
80
+ [
90
81
'id ' => 'send_email_to_person ' ,
91
82
'name ' => trans ('admin::app.settings.workflows.helpers.send-email-to-person ' ),
92
83
'options ' => $ emailTemplates ,
93
- ], [
84
+ ],
85
+ [
94
86
'id ' => 'send_email_to_sales_owner ' ,
95
87
'name ' => trans ('admin::app.settings.workflows.helpers.send-email-to-sales-owner ' ),
96
88
'options ' => $ emailTemplates ,
97
- ], [
89
+ ],
90
+ [
98
91
'id ' => 'add_tag ' ,
99
92
'name ' => trans ('admin::app.settings.workflows.helpers.add-tag ' ),
100
- ], [
93
+ ],
94
+ [
101
95
'id ' => 'add_note_as_activity ' ,
102
96
'name ' => trans ('admin::app.settings.workflows.helpers.add-note-as-activity ' ),
103
- ], [
97
+ ],
98
+ [
104
99
'id ' => 'trigger_webhook ' ,
105
100
'name ' => trans ('admin::app.settings.workflows.helpers.add-webhook ' ),
106
101
'options ' => $ webhooksOptions ,
0 commit comments