Commit f6fafb87 authored by Carsten  Rose's avatar Carsten Rose
Browse files

B3464: FE.type=subrecord, mode=readonly - fixed that sub form should be open...

B3464: FE.type=subrecord, mode=readonly - fixed that sub form should be open with 'formGlobalMode=readonly'
parent 51a5ff12
Pipeline #1220 passed with stage
in 1 minute and 54 seconds
...@@ -2705,9 +2705,15 @@ abstract class AbstractBuildForm { ...@@ -2705,9 +2705,15 @@ abstract class AbstractBuildForm {
$queryStringArray[F_MODE_GLOBAL] = $this->formSpec[F_MODE]; $queryStringArray[F_MODE_GLOBAL] = $this->formSpec[F_MODE];
} }
// In case the subrecord FE is set to 'readonly': subforms will be called with formModeGlobal=readonly
if ($formElement[FE_MODE] == FE_MODE_READONLY) {
$queryStringArray[F_MODE_GLOBAL] = FE_MODE_READONLY;
}
// Add custom query parameter // Add custom query parameter
if (isset($formElement[SUBRECORD_PARAMETER_DETAIL])) { if (isset($formElement[SUBRECORD_PARAMETER_DETAIL])) {
$detailParam = KeyValueStringParser::parse($formElement[SUBRECORD_PARAMETER_DETAIL]); $detailParam = KeyValueStringParser::parse($formElement[SUBRECORD_PARAMETER_DETAIL]);
foreach ($detailParam as $src => $dest) { foreach ($detailParam as $src => $dest) {
// Constants // Constants
if ($src[0] == '&') { if ($src[0] == '&') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment