Bug #80215

using contains in query on property of group type doesn't work

Added by Jens Schendzielorz about 1 year ago. Updated 9 months ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
Extbase
Start date:
2017-03-09
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
On Location Sprint

Description

I've a field which has the type 'group'. I don't use the MM relation and store the values comma seperated in a field of type text.

Now i will query data with a constraint like $query->contains('asdf', 'bar'). As a result i get the error message " Unsupported or non-existing property name "asdf" used in relation matching."

After some research using google i found an older issue describing the same problem regarding a field of type 'select'.
I searched for the line in typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php and replaced

$columnConfiguration['type'] === 'select'

with

in_array($columnConfiguration['type'], array('select', 'group'))
It would be nice if someone could contribute this to the next typo3 7.6 version. I don't now how i can contribute. :)

Associated revisions

Revision d34522e5 (diff)
Added by Łukasz Uznański 9 months ago

[BUGFIX] Fix using contains in query on property of group

Related: master, 8.7
Resolves: #80215
Change-Id: I6f5c88650d6167550a46ad2200c846ec9d11d34a
Reviewed-on: https://review.typo3.org/53993
Tested-by: TYPO3com <>
Reviewed-by: Joerg Kummer <>
Tested-by: Joerg Kummer <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

Revision b87ab2e1 (diff)
Added by Łukasz Uznański 9 months ago

[BUGFIX] Fix using contains in query on property of group

Related: master, 8.7
Resolves: #80215
Change-Id: I6f5c88650d6167550a46ad2200c846ec9d11d34a
Reviewed-on: https://review.typo3.org/54057
Tested-by: TYPO3com <>
Reviewed-by: Christian Kuhn <>
Tested-by: Christian Kuhn <>

History

#1 Updated by Susanne Moog about 1 year ago

To fix the "I don't know how to contribute"-part at least: Here's the guide https://docs.typo3.org/typo3cms/ContributionWorkflowGuide/ - if you have any questions join us on slack (typo3.slack.com // https://forger.typo3.org/slack).

#2 Updated by Morton Jonuschat about 1 year ago

  • Category set to Extbase
  • Target version changed from next-patchlevel to Candidate for patchlevel

#3 Updated by Gerrit Code Review 9 months ago

  • Status changed from New to Under Review

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

#4 Updated by Tymoteusz Motylewski 9 months ago

  • Sprint Focus set to On Location Sprint

#5 Updated by Gerrit Code Review 9 months ago

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/53993

#6 Updated by Gerrit Code Review 9 months ago

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

#7 Updated by Gerrit Code Review 9 months ago

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

#8 Updated by Gerrit Code Review 9 months ago

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

#9 Updated by Gerrit Code Review 9 months ago

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

#10 Updated by Gerrit Code Review 9 months ago

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

#11 Updated by Gerrit Code Review 9 months ago

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

#12 Updated by Gerrit Code Review 9 months ago

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

#13 Updated by Łukasz Uznański 9 months ago

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

Also available in: Atom PDF