1
0
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:
Ryan Cramer
2020-07-10 12:39:57 -04:00
parent 4f98dc974a
commit a474ffa8f9
3 changed files with 44 additions and 6 deletions

View File

@@ -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;