1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-24 15:23:11 +02:00

Fix issue in FieldtypeFieldsetOpen.module where hooks might not get called depending on module load order

This commit is contained in:
Ryan Cramer
2018-04-08 08:17:09 -04:00
parent 341342dc5b
commit ae5b955ec8

View File

@@ -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;
}
/**