Commit 314a890e authored by Sybille Peters's avatar Sybille Peters 🙋 Committed by Oliver Bartsch
Browse files

[BUGFIX] Fix linkvalidator level

Fix a problem in the GUI where the previous page "depth" selector
("Show this level") was not remembered when selecting a different
page in the page tree.

Resolves: #95893
Releases: master
Change-Id: Ifdb90ac21701dd9ad2a87a1864f24d32e6dd1f8f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72197


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
parent ff16799f
......@@ -217,8 +217,8 @@ class LinkValidatorReport
$this->lastEditedRecord['timestamp'] = $request->getQueryParams()['last_edited_record_timestamp'] ?? 0;
// get searchLevel (number of levels of pages to check / show results)
$this->searchLevel[$prefix] = $request->getParsedBody()[$prefix . '_search_levels'] ?? $request->getQueryParams()[$prefix . '_search_levels'] ?? 0;
if (isset($this->searchLevel[$prefix])) {
$this->searchLevel[$prefix] = $request->getParsedBody()[$prefix . '_search_levels'] ?? $request->getQueryParams()[$prefix . '_search_levels'] ?? null;
if ($this->searchLevel[$prefix] !== null) {
$this->pObj->MOD_SETTINGS[$prefix . '_searchlevel'] = $this->searchLevel[$prefix];
} else {
$this->searchLevel[$prefix] = $this->pObj->MOD_SETTINGS[$prefix . '_searchlevel'] ?? 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment