mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Fix issue processwire/processwire-issues#261
This commit is contained in:
@@ -1002,7 +1002,7 @@ abstract class Wire implements WireTranslatable, WireFuelable, WireTrackable {
|
|||||||
if(is_null($old) || is_null($new) || $lastValue !== $new) {
|
if(is_null($old) || is_null($new) || $lastValue !== $new) {
|
||||||
/** @var WireHooks $hooks */
|
/** @var WireHooks $hooks */
|
||||||
$hooks = $this->wire('hooks');
|
$hooks = $this->wire('hooks');
|
||||||
if(($hooks && $hooks->isHooked('changed')) || !$hooks) {
|
if(($hooks && $hooks->isHooked('changed()')) || !$hooks) {
|
||||||
$this->changed($what, $old, $new); // triggers ___changed hook
|
$this->changed($what, $old, $new); // triggers ___changed hook
|
||||||
} else {
|
} else {
|
||||||
$this->___changed($what, $old, $new);
|
$this->___changed($what, $old, $new);
|
||||||
|
Reference in New Issue
Block a user