From 2938f52a3514cf7eddcbe0051377bf72d1a9cbf0 Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Fri, 20 Dec 2024 14:52:47 -0500 Subject: [PATCH] fix static page url translation --- behaviors/TranslatablePage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behaviors/TranslatablePage.php b/behaviors/TranslatablePage.php index 7b5da88..a4ae8d0 100644 --- a/behaviors/TranslatablePage.php +++ b/behaviors/TranslatablePage.php @@ -23,7 +23,7 @@ public function __construct($model) { parent::__construct($model); - $this->model->bindEvent('model.afterFetch', function() { + $this->model->bindEventOnce('model.afterFetch', function() { $this->translatableOriginals = $this->getModelAttributes(); if (!App::runningInBackend()) {