Brings name overriding back to filter-types... while we don't fix this.

This commit is contained in:
Mateus Machado Luna 2019-10-04 14:14:41 -03:00
parent b22d9b92d4
commit c3bc4f6ab2
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ class REST_Filter_Types_Controller extends REST_Controller {
$filter_type = new $name(); $filter_type = new $name();
$filter_arr = $filter_type->_toArray(); $filter_arr = $filter_type->_toArray();
$filter_arr['name'] = $item;
return $filter_arr; return $filter_arr;
} }