Breaking: The job validation settings reach the backend
Description
The flags of Configuration/ apply to the
backend record editor of a job now, not only to the new job form: a
required
field is required there,
readonly
and
disabled
make a field read only, and
email
and
number
set the type of the field.
A listener of
\TYPO3\ with the
identifier academic- applies them, after every
Configuration/ file. For each configured field it sets
whether the field is required and read only, also when the settings say no.
Impact
With the shipped settings, the company name and the description of a job are required in the backend record editor. A job without one of them can only be saved there once it is filled in. Jobs created through the new job form have both, since the form required them already.
A copy of the old settings can lose phone numbers. The manual of 2.x asked
for a copy of the whole
validations
block, and that block marked the
contact phone with
number
. A copy that still does turns
contact_ into a number field in the backend, and saving a job
there stores +49 30 123 as 49. The settings files are merged
per field now, so the shipped
tel
does not reach a copy that names the
field.
A TCA override of a site package that sets
required
or
read
on a field the settings configure no longer takes effect. A field the settings
list with
url
alone, the link for example, is not required in the
backend, whatever the override says.
Affected installations
Installations whose site package ships
Configuration/ with
number
on
contact, installations with job records that lack a company name
or a description, and installations that change
required
or
read of a configured job field in their TCA overrides.
Migration
Before the update, replace
number
with
tel
on
contact in the settings file of the site package, or remove the
field from it so the shipped flags apply:
validations:
job:
contactPhone:
- tel
Fill in the missing values when an editor next saves such a record, or make the fields optional in the settings of the site package:
validations:
job:
companyName: []
description: []
Move a TCA override of
required
or
read into the settings
file. When the backend has to differ from the form, register a listener of
After ordered after
academic-, see the validation settings.