mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 01:04:16 +02:00
Add new convenience method Field::getContext();
This commit is contained in:
@@ -266,6 +266,7 @@ class Fieldgroup extends WireArray implements Saveable, Exportable, HasLookupIte
|
||||
|
||||
if($useFieldgroupContext && $value) {
|
||||
$value->flags = $value->flags | Field::flagFieldgroupContext;
|
||||
$value->setQuietly('_contextFieldgroup', $this);
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
Reference in New Issue
Block a user