HomePhorge

htmlform: Handle null from HTMLFormField::getDefault in multiselects

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

htmlform: Handle null from HTMLFormField::getDefault in multiselects

HTMLFormField::getDefault is documented to return mixed, which includes
null, but WebRequest::getText is documented to allow strings only.

The use of WebRequest::getText cannot be replaced with
WebRequest::getVal in the multiselects, because there are working with
\n and WebRequest::getText provides normalisation for \r\n

Bug: T330526
Change-Id: I5df0141fb254a7e2939994daa9ded1a7a126231a
(cherry picked from commit c7b84d9e579a8d2fc42ed6e4a8e43ceaaaf387e1)

Details

Provenance
Umherirrender <umherirrender_de.wp@web.de>Authored on Feb 25 2023, 8:08 PM

Event Timeline

Umherirrender <umherirrender_de.wp@web.de> committed rMW227a85892e8a: htmlform: Handle null from HTMLFormField::getDefault in multiselects (authored by Umherirrender <umherirrender_de.wp@web.de>).Mar 1 2023, 6:59 PM

Commit No Longer Exists

This commit no longer exists in the repository.