ImportsourceController: fix pagination

Next page pointed to importsource/fetch, should stay importsource/preview

refs #2096
This commit is contained in:
Thomas Gelf 2020-03-09 10:26:49 +01:00
parent 391edf5f19
commit a7ea5d0b76
2 changed files with 3 additions and 1 deletions

View File

@ -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',

View File

@ -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)