From a7ea5d0b764870456bb01d799e03904c059cadf7 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 9 Mar 2020 10:26:49 +0100 Subject: [PATCH] ImportsourceController: fix pagination Next page pointed to importsource/fetch, should stay importsource/preview refs #2096 --- application/controllers/ImportsourceController.php | 3 ++- doc/82-Changelog.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/ImportsourceController.php b/application/controllers/ImportsourceController.php index 114fa1d8..311c6316 100644 --- a/application/controllers/ImportsourceController.php +++ b/application/controllers/ImportsourceController.php @@ -143,10 +143,11 @@ class ImportsourceController extends ActionController $this->translate('Import source preview: %s'), $source->get('source_name') ); + $fetchUrl = clone($this->url()); $this->actions()->add(Link::create( $this->translate('Download JSON'), - $this->url()->setPath('director/importsource/fetch'), + $fetchUrl->setPath('director/importsource/fetch'), null, [ 'target' => '_blank', diff --git a/doc/82-Changelog.md b/doc/82-Changelog.md index 7af620c2..99353a04 100644 --- a/doc/82-Changelog.md +++ b/doc/82-Changelog.md @@ -22,6 +22,7 @@ next (will be 1.8.0) * FEATURE: allow to define update-only Sync Rules (#2059) * FEATURE: New Property Modifier: ListToObject (#2062) * FEATURE: Import Sources now allow to download previewed data as JSON (#2096) +* FIX: LDAP Import is now able to paginate limited results (#2019) ### REST API * FEATURE: Self Service API ignores empty/missing properties (e.g. no address)