Change board users to shared list
This commit is contained in:
parent
c9380e2cd9
commit
16deb35442
@ -23,7 +23,7 @@ class Board extends BaseModel {
|
|||||||
$bean->xownColumnList = [];
|
$bean->xownColumnList = [];
|
||||||
$bean->xownCategoryList = [];
|
$bean->xownCategoryList = [];
|
||||||
$bean->xownAutoActionList = [];
|
$bean->xownAutoActionList = [];
|
||||||
$bean->ownUserList = [];
|
$bean->sharedUserList = [];
|
||||||
|
|
||||||
foreach($this->columns as $col) {
|
foreach($this->columns as $col) {
|
||||||
$col->updateBean();
|
$col->updateBean();
|
||||||
@ -42,7 +42,7 @@ class Board extends BaseModel {
|
|||||||
|
|
||||||
foreach($this->users as $user) {
|
foreach($this->users as $user) {
|
||||||
$user->updateBean();
|
$user->updateBean();
|
||||||
$this->bean->ownUserList[] = $user->bean;
|
$this->bean->sharedUserList[] = $user->bean;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,8 +82,8 @@ class Board extends BaseModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($bean->ownUserList)) {
|
if (isset($bean->sharedUserList)) {
|
||||||
foreach($bean->ownUserList as $item) {
|
foreach($bean->sharedUserList as $item) {
|
||||||
$this->users[] = new User($this->container, $item->id);
|
$this->users[] = new User($this->container, $item->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user