From 78a8e9bd38679908e2b773879e9a818f73f9d4a2 Mon Sep 17 00:00:00 2001
From: Pierre Belloy
Date: Thu, 8 Aug 2024 14:23:11 +0200
Subject: [PATCH] Release 7.1.5
Signed-off-by: Pierre Belloy
---
CHANGELOG.md | 111 ++++++++++++++++++
...ass-search-context-in-grid-view-action.yml | 10 --
.../fix-auto-add-new-row-in-editable-grid.yml | 3 -
...when-record-is-changed-in-popup-editor.yml | 7 --
.../fix-custom-collection-fields-title.yml | 3 -
...close-on-multiple-selection-of-records.yml | 6 -
.../fix-ensure-m2o-value-for-json-fields.yml | 3 -
...mns-through-action-attrs-in-collection.yml | 3 -
...-js-exprs-and-attrs-priority-confilcts.yml | 5 -
.../fix-kanban-column-writing-mode.yml | 5 -
...n-changed-number-value-issue-in-action.yml | 3 -
...-hideIf-over-showIf-in-expression-eval.yml | 7 --
.../unreleased/fix-query-custom-field.yml | 3 -
.../unreleased/fix-reload-with-notify.yml | 3 -
...-in-support-for-radio-checkbox-selects.yml | 3 -
...tion-widget-attributes-for-json-fields.yml | 15 ---
.../fix-tag-select-canedit-view.yml | 3 -
...reference-field-data-for-custom-fields.yml | 3 -
...del-field-preference-over-custom-field.yml | 11 --
.../sanitize-message-thread-for-xss.yml | 3 -
20 files changed, 111 insertions(+), 99 deletions(-)
delete mode 100644 changelogs/unreleased/fix-always-pass-search-context-in-grid-view-action.yml
delete mode 100644 changelogs/unreleased/fix-auto-add-new-row-in-editable-grid.yml
delete mode 100644 changelogs/unreleased/fix-call-save-only-when-record-is-changed-in-popup-editor.yml
delete mode 100644 changelogs/unreleased/fix-custom-collection-fields-title.yml
delete mode 100644 changelogs/unreleased/fix-details-view-should-close-on-multiple-selection-of-records.yml
delete mode 100644 changelogs/unreleased/fix-ensure-m2o-value-for-json-fields.yml
delete mode 100644 changelogs/unreleased/fix-hide-columns-through-action-attrs-in-collection.yml
delete mode 100644 changelogs/unreleased/fix-js-exprs-and-attrs-priority-confilcts.yml
delete mode 100644 changelogs/unreleased/fix-kanban-column-writing-mode.yml
delete mode 100644 changelogs/unreleased/fix-non-changed-number-value-issue-in-action.yml
delete mode 100644 changelogs/unreleased/fix-prefer-hideIf-over-showIf-in-expression-eval.yml
delete mode 100644 changelogs/unreleased/fix-query-custom-field.yml
delete mode 100644 changelogs/unreleased/fix-reload-with-notify.yml
delete mode 100644 changelogs/unreleased/fix-selection-in-support-for-radio-checkbox-selects.yml
delete mode 100644 changelogs/unreleased/fix-set-action-widget-attributes-for-json-fields.yml
delete mode 100644 changelogs/unreleased/fix-tag-select-canedit-view.yml
delete mode 100644 changelogs/unreleased/improve-reference-field-data-for-custom-fields.yml
delete mode 100644 changelogs/unreleased/model-field-preference-over-custom-field.yml
delete mode 100644 changelogs/unreleased/sanitize-message-thread-for-xss.yml
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1f7585e5ef..78c60bf680 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,114 @@
+## 7.1.5 (2024-08-08)
+
+#### Change
+
+* Always retain filters in grid view action context
+
+
+
+ On actions executed from grid views, we can fetch current filters applied
+ on the view using `request.getCriteria()`. it was initially only available if
+ there are no records selected. To be consistent, it should also be available
+ whatever records are selected or not. This shouldn't have any impact. Selected
+ records are available thought `_ids` in context, the current filter through
+ `request.getCriteria()`.
+
+
+
+* Model field preferred over custom field when setting value
+
+
+
+ When a custom field has same name of model field, action called from
+ form view was updating field in form but action called from json editor
+ was updating field in the json editor. This was creating confusion
+ depending on where the action was called. To uniformize behavior, form
+ field gets preference over custom field (if same name). This can be
+ breaking change, but use a custom field name same as the model field one
+ isn't recommended.
+
+
+
+#### Fix
+
+* Fix title not displayed on custom collection fields
+* Fix reload not triggered after notify if pending actions
+* Improve reference field data for json fields
+* Fix auto add new row in editable grid
+* Fix prefer hideIf over showIf in expression evaluation
+
+
+
+ When widget defines both expression i.e. showIf and hideIf then
+ it will first eval hideIf expression, if it returns true then
+ it is considered to be hidden true else it will take and eval result of showIf expression.
+
+
+
+* Fix set custom fields attributes
+
+
+
+ This fixes updating custom fields attributes in views.
+
+ Custom field that are part of the default `attrs` json field, attributes can be updated either without prefix
+ (``) or without prefix
+ (``), no matter where the action is triggered in the
+ view. This means that whether the action is triggered from a field event or a button in the main form or from a field
+ event or button inside a json field, it works same.
+
+ For custom fields that are part of other json fields, attributes have to be updated with their respective prefix
+ (``) or if the action is executed inside the
+ json field, attributes can also be updated without prefix (``).
+
+
+
+* Fix query domain on relational custom fields
+* Fix call save only when record is changed in popup editor
+
+
+
+ When form contains dummy fields or x-dirty="false" items then when record is saved
+ by clicking on ok, it should save record when those fields get changed regardless of
+ form is not dirty.
+
+
+
+* Fix dirty issue for non-changed number value through action
+* Fix js expressions and attributes priority
+
+
+
+ js expressions have the priority over attributes set with action-attrs.
+
+
+
+* Fix selection-in support for radio/checkbox select
+* Fix hide columns through action-attrs in collection
+* Fix ensure m2o value for json fields
+* Fix kanban column title writing mode
+
+
+
+ When written vertically, multiline text should grow from right to left.
+
+
+
+* Fix details view should close on multiple selection of record
+
+
+
+ When multiple records are selected in grid view then
+ details view should be not open and should be close if opened.
+
+
+
+* Fix canEdit/canView on TagSelect widget
+
+#### Security
+
+* Fix XSS vulnerability with message thread
+
## 7.1.4 (2024-07-18)
#### Fix
diff --git a/changelogs/unreleased/fix-always-pass-search-context-in-grid-view-action.yml b/changelogs/unreleased/fix-always-pass-search-context-in-grid-view-action.yml
deleted file mode 100644
index 29600ab76f..0000000000
--- a/changelogs/unreleased/fix-always-pass-search-context-in-grid-view-action.yml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title: Always retain filters in grid view action context
-type: change
-description: |
- On actions executed from grid views, we can fetch current filters applied
- on the view using `request.getCriteria()`. it was initially only available if
- there are no records selected. To be consistent, it should also be available
- whatever records are selected or not. This shouldn't have any impact. Selected
- records are available thought `_ids` in context, the current filter through
- `request.getCriteria()`.
\ No newline at end of file
diff --git a/changelogs/unreleased/fix-auto-add-new-row-in-editable-grid.yml b/changelogs/unreleased/fix-auto-add-new-row-in-editable-grid.yml
deleted file mode 100644
index 51ef8278f5..0000000000
--- a/changelogs/unreleased/fix-auto-add-new-row-in-editable-grid.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix auto add new row in editable grid
-type: fix
diff --git a/changelogs/unreleased/fix-call-save-only-when-record-is-changed-in-popup-editor.yml b/changelogs/unreleased/fix-call-save-only-when-record-is-changed-in-popup-editor.yml
deleted file mode 100644
index 83aba909fa..0000000000
--- a/changelogs/unreleased/fix-call-save-only-when-record-is-changed-in-popup-editor.yml
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: Fix call save only when record is changed in popup editor
-type: fix
-description: |
- When form contains dummy fields or x-dirty="false" items then when record is save
- by clicking on ok, it should save record when those fields get changed regardless of
- form is not dirty.
\ No newline at end of file
diff --git a/changelogs/unreleased/fix-custom-collection-fields-title.yml b/changelogs/unreleased/fix-custom-collection-fields-title.yml
deleted file mode 100644
index 2c33cd7ecf..0000000000
--- a/changelogs/unreleased/fix-custom-collection-fields-title.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix title not displayed on custom collection fields
-type: fix
diff --git a/changelogs/unreleased/fix-details-view-should-close-on-multiple-selection-of-records.yml b/changelogs/unreleased/fix-details-view-should-close-on-multiple-selection-of-records.yml
deleted file mode 100644
index 1088acb5b5..0000000000
--- a/changelogs/unreleased/fix-details-view-should-close-on-multiple-selection-of-records.yml
+++ /dev/null
@@ -1,6 +0,0 @@
----
-title: Fix details view should close on multiple selection of record
-type: fix
-description: |
- When multiple records are selected in grid view then
- details view should be not open and should be close if opened.
\ No newline at end of file
diff --git a/changelogs/unreleased/fix-ensure-m2o-value-for-json-fields.yml b/changelogs/unreleased/fix-ensure-m2o-value-for-json-fields.yml
deleted file mode 100644
index 4de79b9eb6..0000000000
--- a/changelogs/unreleased/fix-ensure-m2o-value-for-json-fields.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix ensure m2o value for json fields
-type: fix
diff --git a/changelogs/unreleased/fix-hide-columns-through-action-attrs-in-collection.yml b/changelogs/unreleased/fix-hide-columns-through-action-attrs-in-collection.yml
deleted file mode 100644
index 967f22fbb9..0000000000
--- a/changelogs/unreleased/fix-hide-columns-through-action-attrs-in-collection.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix hide columns through action-attrs in collection
-type: fix
diff --git a/changelogs/unreleased/fix-js-exprs-and-attrs-priority-confilcts.yml b/changelogs/unreleased/fix-js-exprs-and-attrs-priority-confilcts.yml
deleted file mode 100644
index c48c1ba854..0000000000
--- a/changelogs/unreleased/fix-js-exprs-and-attrs-priority-confilcts.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: Fix js expressions and attrs priority
-type: fix
-description: |
- js expressions have the priority over attributes set with action-attrs.
\ No newline at end of file
diff --git a/changelogs/unreleased/fix-kanban-column-writing-mode.yml b/changelogs/unreleased/fix-kanban-column-writing-mode.yml
deleted file mode 100644
index 4f735ce5c8..0000000000
--- a/changelogs/unreleased/fix-kanban-column-writing-mode.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-title: Fix kanban column title writing mode
-type: fix
-description: |
- When written vertically, multiline text should grow from right to left.
diff --git a/changelogs/unreleased/fix-non-changed-number-value-issue-in-action.yml b/changelogs/unreleased/fix-non-changed-number-value-issue-in-action.yml
deleted file mode 100644
index ab4d8637b0..0000000000
--- a/changelogs/unreleased/fix-non-changed-number-value-issue-in-action.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix dirty issue for non-changed number value through action
-type: fix
diff --git a/changelogs/unreleased/fix-prefer-hideIf-over-showIf-in-expression-eval.yml b/changelogs/unreleased/fix-prefer-hideIf-over-showIf-in-expression-eval.yml
deleted file mode 100644
index c9ee1bff29..0000000000
--- a/changelogs/unreleased/fix-prefer-hideIf-over-showIf-in-expression-eval.yml
+++ /dev/null
@@ -1,7 +0,0 @@
----
-title: Fix prefer hideIf over showIf in expression evaluation
-type: fix
-description: |
- When widget defines both expression i.e. showIf and hideIf then
- it will first eval hideIf expression, if it return true then
- it is considered to be hidden true else it will take and eval result of showIf expression.
diff --git a/changelogs/unreleased/fix-query-custom-field.yml b/changelogs/unreleased/fix-query-custom-field.yml
deleted file mode 100644
index 1d1af64065..0000000000
--- a/changelogs/unreleased/fix-query-custom-field.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix query domain on relational custom fields
-type: fix
diff --git a/changelogs/unreleased/fix-reload-with-notify.yml b/changelogs/unreleased/fix-reload-with-notify.yml
deleted file mode 100644
index fb1a5ac050..0000000000
--- a/changelogs/unreleased/fix-reload-with-notify.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix reload not triggered after notify if pending actions
-type: fix
\ No newline at end of file
diff --git a/changelogs/unreleased/fix-selection-in-support-for-radio-checkbox-selects.yml b/changelogs/unreleased/fix-selection-in-support-for-radio-checkbox-selects.yml
deleted file mode 100644
index a41b459edc..0000000000
--- a/changelogs/unreleased/fix-selection-in-support-for-radio-checkbox-selects.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix selection-in support for radio/checkbox select
-type: fix
diff --git a/changelogs/unreleased/fix-set-action-widget-attributes-for-json-fields.yml b/changelogs/unreleased/fix-set-action-widget-attributes-for-json-fields.yml
deleted file mode 100644
index 2eea1a6123..0000000000
--- a/changelogs/unreleased/fix-set-action-widget-attributes-for-json-fields.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-title: Fix set custom fields attributes
-type: fix
-description: |
- This fixes updating custom fields attributes in views.
-
- Custom field that are part of the default `attrs` json field, attributes can be updated either without prefix
- (``) or without prefix
- (``), no matter where the action is triggered in the
- view. This means that whether the action is triggered from a field event or a button in the main form or from a field
- event or button inside a json field, it works same.
-
- For custom fields that are part of other json fields, attributes have to be updated with their respective prefix
- (``) or if the action is executed inside the
- json field, attributes can also be updated without prefix (``).
\ No newline at end of file
diff --git a/changelogs/unreleased/fix-tag-select-canedit-view.yml b/changelogs/unreleased/fix-tag-select-canedit-view.yml
deleted file mode 100644
index 447530b418..0000000000
--- a/changelogs/unreleased/fix-tag-select-canedit-view.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix canEdit/canView on TagSelect widget
-type: fix
diff --git a/changelogs/unreleased/improve-reference-field-data-for-custom-fields.yml b/changelogs/unreleased/improve-reference-field-data-for-custom-fields.yml
deleted file mode 100644
index 556030574b..0000000000
--- a/changelogs/unreleased/improve-reference-field-data-for-custom-fields.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Improve reference field data for json fields
-type: fix
diff --git a/changelogs/unreleased/model-field-preference-over-custom-field.yml b/changelogs/unreleased/model-field-preference-over-custom-field.yml
deleted file mode 100644
index 29c7c6988c..0000000000
--- a/changelogs/unreleased/model-field-preference-over-custom-field.yml
+++ /dev/null
@@ -1,11 +0,0 @@
----
-title: Model field preferred over custom field when setting value
-type: change
-description: |
- When a custom field has same name of model field, action called from
- form view was updating field in form but action called from json editor
- was updating field in the json editor. This was creating confusion
- depending on where the action was called. To uniformize behavior, form
- field gets preference over custom field (if same name). This can be
- breaking change, but use a custom field name same a model field one isn't
- recommended.
\ No newline at end of file
diff --git a/changelogs/unreleased/sanitize-message-thread-for-xss.yml b/changelogs/unreleased/sanitize-message-thread-for-xss.yml
deleted file mode 100644
index 4224774734..0000000000
--- a/changelogs/unreleased/sanitize-message-thread-for-xss.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: Fix XSS vulnerability with message thread
-type: security