Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.1] - 2025-03-06

- Handled webform elements not present in submission data
i.e. markup elements.

## [1.0.0] - 2025-02-28

- Version 1.0.0.
Expand Down Expand Up @@ -72,7 +77,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- First version of the module
- Added submodule to log user CUD events.

[Unreleased]: https://github.com/OS2web/os2web_audit/compare/1.0.0...HEAD
[Unreleased]: https://github.com/OS2web/os2web_audit/compare/1.0.1...HEAD
[1.0.1]: https://github.com/OS2web/os2web_audit/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/OS2web/os2web_audit/compare/0.2.2...1.0.0
[0.2.2]: https://github.com/OS2web/os2web_audit/compare/0.2.1...0.2.2
[0.2.1]: https://github.com/OS2web/os2web_audit/compare/0.2.0...0.2.1
Expand Down
4 changes: 4 additions & 0 deletions modules/os2web_audit_entity/os2web_audit_entity.module
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ function os2web_audit_entity_webform_post_load_data(mixed $submissions): void {
$submissionData = $submission->getData();
if (!empty($filterFields)) {
foreach ($filterFields as $field) {
// Not all fields are present within submission data, i.e. markup.
if (!isset($submissionData[$field])) {
continue;
}
$cpr = $submissionData[$field];
$personal .= sprintf(' CPR "%s" in field "%s".', $cpr ?: 'null', $field);
}
Expand Down
Loading