1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 08:17:12 +02:00
This commit is contained in:
Ryan Cramer
2017-05-26 09:44:14 -04:00
parent 1a590c586f
commit 76fc6dada1

View File

@@ -1002,7 +1002,7 @@ abstract class Wire implements WireTranslatable, WireFuelable, WireTrackable {
if(is_null($old) || is_null($new) || $lastValue !== $new) {
/** @var WireHooks $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
} else {
$this->___changed($what, $old, $new);