Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
basic
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab Maintenance 28.03.2025 | 20:00 - 23:00 MEZ
Show more breadcrumbs
xrm
basic
Commits
ff687263
Commit
ff687263
authored
5 years ago
by
Johannes Goderbauer
Browse files
Options
Downloads
Patches
Plain Diff
GDPR: Workaround for loading by idvalues (e.g. on "Save and Open")
parent
303e82a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entity/DSGVO_entity/recordcontainers/jdito/contentProcess.js
+14
-0
14 additions, 0 deletions
entity/DSGVO_entity/recordcontainers/jdito/contentProcess.js
with
14 additions
and
0 deletions
entity/DSGVO_entity/recordcontainers/jdito/contentProcess.js
+
14
−
0
View file @
ff687263
...
...
@@ -16,6 +16,20 @@ var filterCond;
if
(
vars
.
exists
(
"
$local.idvalues
"
)
&&
vars
.
get
(
"
$local.idvalues
"
)
&&
vars
.
get
(
"
$local.idvalues
"
).
length
>
0
)
{
filterCond
=
newWhere
(
"
DSGVO.DSGVOID
"
,
vars
.
get
(
"
$local.idvalues
"
),
SqlBuilder
.
IN
());
//this is a workaround: when using $local.idvalues the contactId-param may not be set.
//But the DataPrivacyUtils.collectAll function needs a contactId to work properly, and there exists no other function to load the data by uids
//when the upper TODO is done, this workaround can be removed
if
(
contactId
==
null
)
{
var
contactIds
=
(
new
SqlBuilder
()).
selectDistinct
(
"
DSGVO.CONTACT_ID
"
)
.
from
(
"
DSGVO
"
)
.
where
(
filterCond
)
.
arrayColumn
();
if
(
contactIds
.
length
>
1
)
throw
new
Error
(
"
DSGVO_entity.jdito.contentProcess: tried to load data for more than one contact; this is not implemented
"
);
contactId
=
contactIds
[
0
];
}
}
var
data
=
DataPrivacyUtils
.
collectAll
(
contactId
,
filterCond
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment