diff --git a/core/ViewDataTable/Factory.php b/core/ViewDataTable/Factory.php index 9ac90a1723ac676a3c53bed1d09ba8e0166cef45..2873e8538a1a57f2cab1a6a8cc463afbcd54e676 100644 --- a/core/ViewDataTable/Factory.php +++ b/core/ViewDataTable/Factory.php @@ -119,7 +119,9 @@ class Factory // Common::getRequestVar removes backslashes from the defaultValue in case magic quotes are enabled. // therefore do not pass this as a default value to getRequestVar() - if ('' === $type) { + if ('' === $type + || $forceDefault + ) { $type = $defaultType ? : HtmlTable::ID; }