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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user