* adjust for js default value and init userview in upgrade.

This commit is contained in:
王怡栋
2022-03-23 17:19:41 +08:00
parent da33f252eb
commit 2f0f2e2965
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -6,9 +6,9 @@
* @access public
* @return void
*/
function changeValue(spaceID, type = '')
function changeValue(spaceID, type)
{
if(type == '') type = spaceType;
if(typeof type === 'undefined') type = spaceType;
location.href = createLink('kanban', 'create', 'spaceID=' + spaceID + '&type=' + type);
}
+1 -3
View File
@@ -3750,9 +3750,7 @@ class upgradeModel extends model
public function initUserView()
{
$this->saveLogs('Run Method ' . __FUNCTION__);
$users = $this->dao->select('account')->from(TABLE_USER)->fetchAll();
$this->loadModel('user');
foreach($users as $user) $this->user->computeUserView($user->account, $force = true);
$this->dao->delete()->from(TABLE_USERVIEW)->exec();
return true;
}