Merge pull request #4265 from nfauchelle/patch-3

Fix the order of params
This commit is contained in:
Daniel Hensby 2015-06-12 00:12:31 +01:00
commit 282b9d419c

View File

@ -358,8 +358,8 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
if(!is_string($fieldClass)) continue; if(!is_string($fieldClass)) continue;
// Strip off any parameters // Strip off any parameters
$bPos = strpos('(', $fieldClass); $bPos = strpos($fieldClass, '(');
if($bPos !== FALSE) $fieldClass = substr(0,$bPos, $fieldClass); if($bPos !== FALSE) $fieldClass = substr($fieldClass, 0, $bPos);
// Test to see if it implements CompositeDBField // Test to see if it implements CompositeDBField
if(ClassInfo::classImplements($fieldClass, 'CompositeDBField')) { if(ClassInfo::classImplements($fieldClass, 'CompositeDBField')) {