summaryrefslogtreecommitdiffstats
path: root/modules-available/passthrough/hooks/locations-column.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/passthrough/hooks/locations-column.inc.php')
-rw-r--r--modules-available/passthrough/hooks/locations-column.inc.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules-available/passthrough/hooks/locations-column.inc.php b/modules-available/passthrough/hooks/locations-column.inc.php
index 9757ac50..3d12a0f8 100644
--- a/modules-available/passthrough/hooks/locations-column.inc.php
+++ b/modules-available/passthrough/hooks/locations-column.inc.php
@@ -43,6 +43,16 @@ class PassthroughLocationColumn extends AbstractLocationColumn
return true;
}
+ public function propagationOverride(string $parent, string $data): string
+ {
+ if (empty($parent))
+ return $data;
+ $merge = array_unique(array_merge(
+ explode(', ', $parent), explode(', ', $data)));
+ sort($merge);
+ return implode(', ', $merge);
+ }
+
}
return new PassthroughLocationColumn($allowedLocationIds); \ No newline at end of file