Important: Extended ProfileDemand , findByUids() and demand handling
Description
To support the new "Show hidden records" plugin option, the person demand and repository layer gained the following additions. All of them are non-breaking (new optional parameter / new transport flag with defaults):
\FGTCLB\has a newAcademic Persons\ Domain\ Model\ Dto\ Profile Demand showtransport flag withHidden Records getandShow Hidden Records (): bool setaccessors (defaultShow Hidden Records (bool): Profile Demand false). It mirrors the existing transport-only properties (storage,Pages fallback) and is likewise announced as a future addition toFor Non Translated \FGTCLB\(the interface carries the commented signatures and the repository guards the call withAcademic Persons\ Domain\ Model\ Dto\ Demand Interface method_).exists () \FGTCLB\honoursAcademic Persons\ Domain\ Repository\ Profile Repository:: find By Demand () ProfileviaDemand:: get Show Hidden Records () apply.Demand Settings () \FGTCLB\andAcademic Persons\ Domain\ Repository\ Profile Repository:: find By Uids () \FGTCLB\gained an appended optionalAcademic Persons\ Domain\ Repository\ Contract Repository:: find By Uids () bool $showparameter.Hidden = false \FGTCLB\is a new method that resolves a single profile by uid including hidden (disabled) records. It is used by the detail view.Academic Persons\ Domain\ Repository\ Profile Repository:: find By Uid Including Hidden (int $uid): ?Profile \FGTCLB\readsAcademic Persons\ Controller\ Profile Controller $this->settingsin['show Hidden Records'] adopt,Settings () card,Action () selectedandProfiles Action () selectedand threads it into the repositories. The newContracts Action () initializere-resolves theDetail Action () profileargument viafindwhen the option is enabled, because the default Extbase argument mapping respects enable fields.By Uid Including Hidden ()
When the flag/parameter is set, the query ignores only the disabled
(hidden) enable field via the Extbase query settings; the deleted,
starttime/endtime and fe_ restrictions stay in effect.
Impact
The change is non-breaking: the new demand flag defaults to
false,
the new
find parameter has a default value, and no existing
method signature changed in an incompatible way. Projects that build a
Profile or call
find themselves can opt in via
set respectively the new parameter.
Affected Installations
Only installations that extend or replace the
Profile DTO,
the
Profile, the
Contract or the
Profile need to take the additions into account. All
other installations are unaffected.