Fixed deleting file when using file field type [#1558]

This commit is contained in:
Matias Griese
2019-01-08 11:28:41 +02:00
parent 1a7f5ef7d1
commit 9cc004f188
3 changed files with 26 additions and 9 deletions

View File

@@ -1392,9 +1392,9 @@ class Admin
return $found_fields;
}
public function getPagePathFromToken($path)
public function getPagePathFromToken($path, $page = null)
{
return Utils::getPagePathFromToken($path, $this->page(true));
return Utils::getPagePathFromToken($path, $page ?: $this->page(true));
}
/**