Feature: Contracts and profile information can be hidden
Description
The two document record models gained access to the hidden enable field
that already exists on their database tables, exactly as the contact record
models did in 2.4:
\FGTCLB\Academic Persons\ Domain\ Model\ Contract \FGTCLB\Academic Persons\ Domain\ Model\ Profile Information
Each of them now provides
get and
set.
To list hidden records the two repositories provide a query that ignores the
disabled enable field and nothing else:
ContractRepository:: find By Profile Including Hidden (Profile $profile) ProfileInformation Repository:: find By Profile And Type Including Hidden (Profile $profile, string $type)
Both order by sorting with uid breaking ties. Every other query, and
every relation of
Profile
, keeps respecting the enable fields, so the
public views hide a hidden record as before.
The document section vocabulary of
document
gains hide. It is listed first in the shipped settings of every section,
is offered only when listed, and is withdrawn by
readonly: true
with
every other mutating action. EXT: renders it as the
visibility switch of a row.
Impact
No database change: the hidden columns and their TCA existed already. A
site that overrides the
actions
of a section keeps its list - hide
is not implied - and adds hide where the switch is wanted.
Affected Installations
Installations that configure
document or read the two models
in PHP.