diff options
-rw-r--r-- | core/ViewDataTable/Factory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ViewDataTable/Factory.php b/core/ViewDataTable/Factory.php index 798e57dc29..8a9b2d5000 100644 --- a/core/ViewDataTable/Factory.php +++ b/core/ViewDataTable/Factory.php @@ -145,7 +145,7 @@ class Factory $type = $defaultType ?: self::DEFAULT_VIEW; } } else { - $type = $defaultViewType; + $type = $defaultType ?: $defaultViewType; } $params['viewDataTable'] = $type; |