From ae5b955ec83294828f12ae4d14064723f53eac58 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Sun, 8 Apr 2018 08:17:09 -0400 Subject: [PATCH] Fix issue in FieldtypeFieldsetOpen.module where hooks might not get called depending on module load order --- wire/modules/Fieldtype/FieldtypeFieldsetOpen.module | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/wire/modules/Fieldtype/FieldtypeFieldsetOpen.module b/wire/modules/Fieldtype/FieldtypeFieldsetOpen.module index b6d75a86..ad2b4a13 100644 --- a/wire/modules/Fieldtype/FieldtypeFieldsetOpen.module +++ b/wire/modules/Fieldtype/FieldtypeFieldsetOpen.module @@ -33,12 +33,6 @@ class FieldtypeFieldsetOpen extends Fieldtype { ); } - /** - * Have the hooks been setup for this Fieldset? - * - */ - protected static $hooked = false; - /** * Setup hooks to minotor when Fields are added and deleted * @@ -46,10 +40,9 @@ class FieldtypeFieldsetOpen extends Fieldtype { * */ public function init() { - if(!self::$hooked && ($this->process == 'ProcessField' || $this->process = 'ProcessTemplate')) { + if($this->process == 'ProcessField' || $this->process = 'ProcessTemplate') { $this->addProcessHooks(); } - self::$hooked = true; } /**