Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into EPIC-5944
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrenssen committed Jun 10, 2020
2 parents cd3b7c2 + d24534c commit 7bfcfc7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions web/modules/custom/joinup_core/joinup_core.post_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,19 @@ function joinup_core_post_update_0106100(array &$sandbox): string {
$sandbox['#finished'] = $sandbox['current'] > $sandbox['max'] ? 1 : (float) $sandbox['current'] / (float) $sandbox['max'];
return "Processed {$sandbox['current']} out of {$sandbox['max']}.";
}

/**
* Fix the value predicates of the policy domain values.
*/
function joinup_core_post_update_0106101(): string {
$query = <<<QUERY
DELETE { GRAPH ?g { ?s <http://joinup.eu/voc/policy-domain> ?o } }
INSERT { GRAPH ?g { ?s <http://policy_domain> ?o } }
WHERE { GRAPH ?g { ?s <http://joinup.eu/voc/policy-domain> ?o } }
QUERY;

$results = \Drupal::getContainer()->get('sparql.endpoint')->query($query);
$current_result = $results->current();
$current_result = reset($current_result);
return $current_result->getValue();
}
6 changes: 3 additions & 3 deletions web/themes/joinup/prototype/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7bfcfc7

Please sign in to comment.