* adjust for js default value and init userview in upgrade.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user