Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
5e9ac967
Commit
5e9ac967
authored
5 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
Fixes #7705. Implement dirty workaround to skip sending of 'not exploded' TG FE's auf save.
parent
97be03dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!239
Fixes #7705. Implement dirty workaround to skip sending of 'not exploded' TG FE's auf save.
Pipeline
#3123
passed
5 years ago
Stage: before
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
extension/Classes/Core/AbstractBuildForm.php
+6
-4
6 additions, 4 deletions
extension/Classes/Core/AbstractBuildForm.php
extension/Classes/Core/Save.php
+3
-1
3 additions, 1 deletion
extension/Classes/Core/Save.php
with
9 additions
and
5 deletions
extension/Classes/Core/AbstractBuildForm.php
+
6
−
4
View file @
5e9ac967
...
...
@@ -9,6 +9,7 @@
namespace
IMATHUZH\Qfq\Core
;
use
IMATHUZH\Qfq\Core\Database\Database
;
use
IMATHUZH\Qfq\Core\Form\Checkbox
;
use
IMATHUZH\Qfq\Core\Helper\HelperFile
;
use
IMATHUZH\Qfq\Core\Helper\HelperFormElement
;
use
IMATHUZH\Qfq\Core\Helper\KeyValueStringParser
;
...
...
@@ -21,7 +22,6 @@ use IMATHUZH\Qfq\Core\Report\Link;
use
IMATHUZH\Qfq\Core\Report\Report
;
use
IMATHUZH\Qfq\Core\Store\Sip
;
use
IMATHUZH\Qfq\Core\Store\Store
;
use
IMATHUZH\Qfq\Core\Form\Checkbox
;
/**
* Class AbstractBuildForm
...
...
@@ -763,6 +763,10 @@ abstract class AbstractBuildForm {
continue
;
// skip this FE
}
// #7705. Dirty fix: 'form_save and fresh created tg element can't be updated, cause the HTML id is unknown: skip those.
if
(
$mode
==
FORM_SAVE
&&
false
!=
stripos
(
$fe
[
FE_NAME
],
'%d'
))
{
continue
;
// skip this FE
}
$flagOutput
=
(
$fe
[
FE_TYPE
]
!==
FE_TYPE_EXTRA
);
// type='extra' will not displayed and not transmitted to the form.
$debugStack
=
array
();
...
...
@@ -3667,9 +3671,7 @@ EOT;
* '{{!SELECT ...' statement, that one will be fired. In case of an non-primary FE, the result array are the
* values for the copies of the specific FE.
*
* Additional the maximum count of all select rows will be determined and returned.
*
* @return int max number of records in FormElement[FE_VALUE] over all FormElements.
* @return int Count of records in FormElement[FE_VALUE] over all FormElements.
* @throws \CodeException
* @throws \DbException
* @throws \UserFormException
...
...
This diff is collapsed.
Click to expand it.
extension/Classes/Core/Save.php
+
3
−
1
View file @
5e9ac967
...
...
@@ -171,7 +171,9 @@ class Save {
break
;
}
$feName
=
$formElement
[
FE_NAME
];
if
(
!
isset
(
$formValues
[
$feName
])
&&
$this
->
isMemberOfTemplateGroup
(
$formElement
))
{
// #7705. Skip FE, which are not already expanded. Detect them by '%' (== '%d')
if
(
!
isset
(
$formValues
[
$feName
])
&&
false
===
stripos
(
$feName
,
'%d'
)
&&
$this
->
isMemberOfTemplateGroup
(
$formElement
))
{
$formValues
[
$feName
]
=
$formElement
[
FE_VALUE
];
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment