From 1cca981ac1ff3a1919398c1570441aff4741ed47 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Wed, 29 Aug 2012 14:12:35 +0200 Subject: [PATCH] Fix bug, business field not retrieved through the ::get_field method --- lib/classes/caption/record.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/caption/record.class.php b/lib/classes/caption/record.class.php index d7be28fac5..0b08ed8ad8 100644 --- a/lib/classes/caption/record.class.php +++ b/lib/classes/caption/record.class.php @@ -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; }