Skip to content
Snippets Groups Projects
Commit 639f2179 authored by efalcy's avatar efalcy
Browse files

dev #18867 : fix RT

parent 56a5636a
Branches
Tags
4 merge requests!715Master,!697Dev #18867 typo3 dossiers documentaires,!672Dev #18867 typo3 dossiers documentaires,!620Dev #18867 typo3 dossiers documentaires
......@@ -31,7 +31,7 @@ trait Trait_CustomFields {
public static function findFirstByCustomFieldValue($custom_field_name,$custom_field_value) {
$meta=self::findMetaForLabel($custom_field_name);
$custom_fields=Class_CustomField::findAllBy(['meta_id' => $meta->getId(),
'model' => Class_CustomField_Model::sanitizeName(get_called_class())]);
'model' => static::getModelName()]);
foreach ($custom_fields as $custom_field) {
$value = Class_CustomField_Value::findFirstBy(['custom_field_id' => $custom_field->getId(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment