Skip to content
Snippets Groups Projects
Commit 92901eb4 authored by colemanw's avatar colemanw
Browse files

Fix #4483

parent 16df6f2f
No related branches found
No related tags found
No related merge requests found
......@@ -446,7 +446,7 @@ class FormattingUtil {
* @return array
*/
public static function filterByPath(array $values, string $fieldPath, string $fieldName): array {
$prefix = substr($fieldPath, 0, strpos($fieldPath, $fieldName));
$prefix = substr($fieldPath, 0, strrpos($fieldPath, $fieldName));
return \CRM_Utils_Array::filterByPrefix($values, $prefix);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment