-
Notifications
You must be signed in to change notification settings - Fork 279
N°8528 - ignore silo not applied on 1:n linkedset displayed in form in portal #761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -232,6 +232,7 @@ protected function GetArrayOfIndex() | |||||||||||||||
| { | ||||||||||||||||
| $aRet = array(); | ||||||||||||||||
| $this->oOriginalSet->Rewind(); | ||||||||||||||||
| $this->oOriginalSet->OptimizeColumnLoad([$this->sClass => []]); | ||||||||||||||||
| $iRow = 0; | ||||||||||||||||
| while ($oObject = $this->oOriginalSet->Fetch()) | ||||||||||||||||
| { | ||||||||||||||||
|
|
@@ -321,8 +322,6 @@ public function Seek($iPosition): void | |||||||||||||||
| */ | ||||||||||||||||
| public function Fetch() | ||||||||||||||||
| { | ||||||||||||||||
| $this->LoadOriginalIds(); | ||||||||||||||||
|
|
||||||||||||||||
| $ret = $this->current(); | ||||||||||||||||
| if ($ret === false) | ||||||||||||||||
| { | ||||||||||||||||
|
|
@@ -353,7 +352,7 @@ public function current() | |||||||||||||||
| if ($this->iCursor < $iPreservedCount) | ||||||||||||||||
| { | ||||||||||||||||
| $sId = key($this->aPreserved); | ||||||||||||||||
| $oRet = MetaModel::GetObject($this->sClass, $sId); | ||||||||||||||||
| $oRet = MetaModel::GetObject($this->sClass, $sId, true, true); | ||||||||||||||||
|
||||||||||||||||
| $oRet = MetaModel::GetObject($this->sClass, $sId, true, true); | |
| $bAllowAllData = false; | |
| if ($this->oOriginalSet !== null) | |
| { | |
| $bAllowAllData = $this->oOriginalSet->GetFilter()->IsAllDataAllowed(); | |
| } | |
| $oRet = MetaModel::GetObject($this->sClass, $sId, true, $bAllowAllData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OptimizeColumnLoad()expects an array keyed by class alias (seeDBObjectSet::OptimizeColumnLoad()), but this uses$this->sClass(class name). If the underlying filter alias was renamed (eg toLinkin indirect linkedsets), this optimization won’t apply and the set may still load all columns. Use the original filter’s class alias (eg$this->oOriginalSet->GetFilter()->GetClassAlias()) as the key.