mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 14:33:14 +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)
|
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) {
|
if ($field->get_name() == $fieldname) {
|
||||||
return $field;
|
return $field;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user