Project

General

Profile

Actions

Bug #64331

closed

TCA slider wizard w. default value in flexform field initializes wrong

Added by d.ros no-lastname-given over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2015-01-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If a TCA slider wizard is used in a field with a default value and the field is placed inside a flexform field, the slider is not initialised with the correct value. If the same slider wizard is used on a field that is not inside a flexform field, the slider initialisation works correctly.

Suspected cause is the different nesting and naming that applies when the slider wizard is used inside a nested structure. Potentially also an issue for IRRE fields.

Way to reproduce

With ext:flux

If I create a new content object which has some global settings in a sheet generated with a flux:wizard.slider field, I do not see any wizard.slider at all.

If I hit "save" - the slider appears - but without the default value from the input field set
I have to hit "save" once again to get the default value of the input field getting applied to the wizard.slider.


Files

issue64331.png (20.3 KB) issue64331.png Joerg Kummer, 2016-09-22 20:19
Actions #1

Updated by Mathias Schreiber over 9 years ago

  • Target version set to 7.4 (Backend)
  • Complexity set to hard
Actions #2

Updated by Benni Mack almost 9 years ago

  • Status changed from New to Needs Feedback

please recheck with 7.3 as the slider and FormEngine has been reworked.

Actions #3

Updated by d.ros no-lastname-given almost 9 years ago

Don't have a 7.x in usage so far. Perhaps someone else can proof.

Actions #4

Updated by Daniel Goerz almost 9 years ago

  • Complexity deleted (hard)

Hi d.ros, I tested your issue on the current master.

Would you agree to close this ticket, though?

Actions #5

Updated by d.ros no-lastname-given almost 9 years ago

You might laugh. I have no 7. in usage. Just close if it is still valid I'll reopen it one day :-)

Actions #6

Updated by Daniel Goerz almost 9 years ago

  • Status changed from Needs Feedback to Closed

Very well then, =)

Actions #7

Updated by Joerg Kummer over 7 years ago

I can confirm this issue on TYPO3 CMS 7 and 8 branches (see screenshot).
Default TCA field works, but flexform field fails. Cause default & current value get not inserted correctly in form data.

Can easy be fixed in ../typo3/sysext/backend/Classes/Form/Wizard/ValueSliderWizard.php in line41

Replace

$flexFormValue = $flexFormTools->getArrayValueByPath($params['flexFormPath'], GeneralUtility::xml2array($value));

with

$flexFormValue = $flexFormTools->getArrayValueByPath($params['flexFormPath'], $params['row'][$field]);

I will upload a patch to Gerrit.
To reproduce, i wrote a little test extension (compatibel with CMS 7 and 8) http://enobe.de/test64331_1.0.0.zip

Can someone reopen this issue?
I don't know which target version to set (next patch level?) - should be fixed for 7 and 8.

Actions #9

Updated by Markus Klein over 7 years ago

  • Status changed from Closed to In Progress
  • Target version changed from 7.4 (Backend) to Candidate for patchlevel
Actions #10

Updated by Gerrit Code Review over 7 years ago

  • Status changed from In Progress to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50008

Actions #11

Updated by Gerrit Code Review over 7 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50047

Actions #12

Updated by Joerg Kummer over 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #13

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF