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';