Skip to content

Commit b236884

Browse files
committed
issue #1992 fixed
1 parent 3a9080f commit b236884

File tree

3 files changed

+22
-25
lines changed

3 files changed

+22
-25
lines changed

composer.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,15 @@
8282
"Tests\\": "tests/"
8383
}
8484
},
85-
"repositories": [{
86-
"type": "path",
87-
"url": "packages/*/*",
88-
"options": {
89-
"symlink": true
85+
"repositories": [
86+
{
87+
"type": "path",
88+
"url": "packages/*/*",
89+
"options": {
90+
"symlink": true
91+
}
9092
}
91-
}],
93+
],
9294
"minimum-stability": "stable",
9395
"prefer-stable": true,
9496
"scripts": {

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/Webkul/Automation/src/Helpers/Entity/Lead.php

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,7 @@ public function getEntity(mixed $entity)
5454
*/
5555
public function getAttributes(string $entityType, array $skipAttributes = ['textarea', 'image', 'file', 'address']): array
5656
{
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);
6958
}
7059

7160
/**
@@ -82,25 +71,31 @@ public function getActions(): array
8271
'id' => 'update_lead',
8372
'name' => trans('admin::app.settings.workflows.helpers.update-lead'),
8473
'attributes' => $this->getAttributes('leads'),
85-
], [
74+
],
75+
[
8676
'id' => 'update_person',
8777
'name' => trans('admin::app.settings.workflows.helpers.update-person'),
8878
'attributes' => $this->getAttributes('persons'),
89-
], [
79+
],
80+
[
9081
'id' => 'send_email_to_person',
9182
'name' => trans('admin::app.settings.workflows.helpers.send-email-to-person'),
9283
'options' => $emailTemplates,
93-
], [
84+
],
85+
[
9486
'id' => 'send_email_to_sales_owner',
9587
'name' => trans('admin::app.settings.workflows.helpers.send-email-to-sales-owner'),
9688
'options' => $emailTemplates,
97-
], [
89+
],
90+
[
9891
'id' => 'add_tag',
9992
'name' => trans('admin::app.settings.workflows.helpers.add-tag'),
100-
], [
93+
],
94+
[
10195
'id' => 'add_note_as_activity',
10296
'name' => trans('admin::app.settings.workflows.helpers.add-note-as-activity'),
103-
], [
97+
],
98+
[
10499
'id' => 'trigger_webhook',
105100
'name' => trans('admin::app.settings.workflows.helpers.add-webhook'),
106101
'options' => $webhooksOptions,

0 commit comments

Comments
 (0)