Fix bug, business field not retrieved through the ::get_field method

This commit is contained in:
Romain Neutron
2012-08-29 14:12:35 +02:00
parent 7a11b3266b
commit 123e17e4ca

View File

@@ -202,7 +202,7 @@ class caption_record implements caption_interface, cache_cacheableInterface
*/
public function get_field($fieldname)
{
foreach ($this->get_fields() as $meta_struct_id => $field) {
foreach ($this->get_fields(null, true) as $meta_struct_id => $field) {
if ($field->get_name() == $fieldname) {
return $field;
}