Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 9b19929

Browse files
author
Charles Ma
committed
BUG: refs #380 Fixed missing table error on admin page.
1 parent d37f15f commit 9b19929

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

core/controllers/AdminController.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,17 @@ function indexAction()
152152
}
153153
}
154154

155+
// Disable default assetstore feature is version less than 3.1.4
156+
if($this->Component->Upgrade->transformVersionToNumeric(Zend_Registry::get('configDatabase')->version) < $this->Component->Upgrade->transformVersionToNumeric("3.1.4") )
157+
{
158+
$defaultAssetStoreId = 0;
159+
}
160+
else
161+
{
162+
$defaultAssetStoreId = $this->Assetstore->getDefault()->getKey();
163+
}
164+
155165
// get assetstore data
156-
$defaultAssetStoreId = $this->Assetstore->getDefault()->getKey();
157166
$assetstores = $this->Assetstore->getAll();
158167
$defaultSet = false;
159168
foreach($assetstores as $key => $assetstore)

0 commit comments

Comments
 (0)