[TYPO3-mvc] Fetching FEUsers related to FEUserGroup
Alex Bailey
alex at lastmancoding.com
Fri Dec 10 13:51:38 CET 2010
http://forge.typo3.org/issues/9772 just found it so I hope it will be
fixed in a future release.
On 2010-12-10 12:54:37 +0100, Alex Bailey said:
> I will check and submit a bug report if nescesscary.
>
> On 2010-12-10 11:54:49 +0100, Franz Koch said:
>
>> Hey Alex,
>>
>>> I fix'd it by adding the following to the Typo3DbBackend.php line 546
>>>
>>> $statement .= ' OR ' . $tableName . '.' . $operand1->getPropertyName() .
>>> ' LIKE \'' . $this->getPlainValue($operand2) . '\')';
>>>
>>> This checks if the operand contains a single value.
>>> I don't know if thats the best way to solve it right now but it works
>>> fine for me.
>>
>> IIRC somebody else stumbled over this already, so there's probably
>> already a ticket and bugfix (didn't check it though). Would you be so
>> kind and see if there's already a ticket for it and if not create one?
>>
>> If patching extbase is ok for you, then your fix is of course fine. If
>> you somehow prefer not to patch extbase, you could of also create a
>> workaround in your repository then. Something like:
>>
>> $query = $this->createQuery();
>> retrun $query->matching(
>> $query->logicalOr(
>> $query->contains('usergroup', $userGroupObject),
>> $query->equals('usergroup', $userGroupObject)
>> )
>> )->execute();
More information about the TYPO3-project-typo3v4mvc
mailing list