From 123e17e4ca391cc16e0200bc73265f36b8ee421a 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 f3ec45ea7a..6aa7686f21 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; }