Bug #26997
closedExtDirect API Generator - namespace filter works not expectable
0%
Description
The namespace filter of the ExtDirect API Generator works not expectable as you need to always give the full namespace instead of just a part of it. This is very annoying if you have more than one registered class.
Example:
The following sample code generates the API of the configured registered class with the very same name.
$this->pageRenderer->addExtDirectCode(array('TYPO3.MyKey.RecordLog.DataProvider'));
The much more expectable behaviour would be to just add the TYPO3.MyKey namespace to the filter list and it matches the more specific namespaces above. The fix should be a no-brainer as the parameters of the isFirstPartOfString method seems to be given in a wrong order.
File: class.t3lib_extjs_extdirectapi.php
Function: findNamespace
Code:
if (t3lib_div::isFirstPartOfStr($filter, $namespace)) {
Updated by Alexander Opitz over 10 years ago
- Status changed from New to Needs Feedback
- Is Regression set to No
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5.35 or 6.2.4)?
Updated by Alexander Opitz almost 10 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.