mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
Fix bug, business field not retrieved through the ::get_field method
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user