File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Release Notes for Webhooks for Craft CMS
2
2
3
+ ## Unreleased
4
+
5
+ ### Fixed
6
+ - Fixed a bug where the ` FirstSave ` and ` ProvisionalDraft ` filters would not respect negation. ([ #74 ] ( https://github.com/craftcms/webhooks/pull/74 ) )
7
+
8
+ ## 3.0.3 - 2022-05-20
9
+
10
+ ### Fixed
11
+ - Fixed a bug where you couldn’t add custom headers when defining a webhook. ([ #73 ] ( https://github.com/craftcms/webhooks/pull/73 ) )
12
+
3
13
## 3.0.2 - 2022-05-12
4
14
5
15
### Fixed
26
36
## 2.4.0.1 - 2021-08-30
27
37
28
38
### Fixed
29
- - Fixed a bug where pending webhook requests weren’t being updated when new webhooks were trigered with matching debounce keys.
39
+ - Fixed a bug where pending webhook requests weren’t being updated when new webhooks were triggered with matching debounce keys.
30
40
31
41
## 2.4.0 - 2021-08-30
32
42
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ public static function excludes(): array
31
31
32
32
protected static function checkElement (ElementInterface $ element , bool $ value ): bool
33
33
{
34
- return $ element ->firstSave ;
34
+ return $ element ->firstSave === $ value ;
35
35
}
36
36
}
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ public static function excludes(): array
31
31
protected static function checkElement (ElementInterface $ element , bool $ value ): bool
32
32
{
33
33
$ root = ElementHelper::rootElement ($ element );
34
- return $ root ->isProvisionalDraft ;
34
+ return $ root ->isProvisionalDraft === $ value ;
35
35
}
36
36
}
Original file line number Diff line number Diff line change 173
173
}
174
174
},
175
175
rows: webhook.headers,
176
+ allowAdd: true,
177
+ allowDelete: true,
178
+ allowReorder: true,
176
179
addRowLabel: 'Add a header'|t('webhooks'),
177
180
}) }}
178
181
You can’t perform that action at this time.
0 commit comments