Project

General

Profile

Actions

Bug #44672

closed

LanguageController has "mixed" type annotations

Added by Nico de Haen over 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Localization
Target version:
Start date:
2013-01-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

The LanguageController of the lang sysext causes Exceptions thrown by the PropertyMapper.

I get an error when trying to call the updateTranslation action:
Exception while property mapping at property path "":Could not find a suitable type converter for "mixed" because no such class or interface exists

There are (at least) 3 "mixed" parameter type annotations in action methods.

When I change the parameter type annotation of the $locales parameter of the updateTranslation to "string" it works, but I'm not sure if there are other method calls passing an array as $locales

Actions #1

Updated by Oliver Hader over 11 years ago

  • Status changed from New to Accepted

I could not reproduce the problem (mixed is just handled as string on my system, for whatever reason).
However the annotation "mixed" is wrong and it should be "string" instead. Multiple locales are submitted as list, e.g. "de,fr,es" - thus should not be a problem to drop "array"

Actions #2

Updated by Oliver Hader over 11 years ago

  • Target version set to 6.0.1
  • Complexity set to easy
Actions #3

Updated by Gerrit Code Review over 11 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17975

Actions #4

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17975

Actions #5

Updated by Gerrit Code Review about 11 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/17975

Actions #6

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/18920

Actions #7

Updated by Wouter Wolters about 11 years ago

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

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF