From 346ea10c09aaf5447393f2f71bba126e863a8f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 24 Jan 2023 10:31:41 +0300 Subject: [PATCH] Fixed delete button and link title issue.. --- app/View/Components/DeleteButton.php | 4 ++-- app/View/Components/DeleteLink.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/View/Components/DeleteButton.php b/app/View/Components/DeleteButton.php index 1f466d961..d97c84571 100644 --- a/app/View/Components/DeleteButton.php +++ b/app/View/Components/DeleteButton.php @@ -229,8 +229,8 @@ class DeleteButton extends Component protected function getModelTitle() { - if (! empty($this->text)) { - return $this->text; + if (! empty($this->title)) { + return $this->title; } $group = 'core'; diff --git a/app/View/Components/DeleteLink.php b/app/View/Components/DeleteLink.php index f098768eb..1c2e881ee 100644 --- a/app/View/Components/DeleteLink.php +++ b/app/View/Components/DeleteLink.php @@ -233,8 +233,8 @@ class DeleteLink extends Component protected function getModelTitle() { - if (! empty($this->text)) { - return $this->text; + if (! empty($this->title)) { + return $this->title; } $group = 'core';