From 372b52f25eba5a4685a92bc138df347d700b9cae Mon Sep 17 00:00:00 2001 From: Roberts Date: Tue, 3 Jul 2018 22:39:37 +0300 Subject: [PATCH] Set sortable field label to has many field --- src/Admin/Form/Fields/Sortable.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Admin/Form/Fields/Sortable.php b/src/Admin/Form/Fields/Sortable.php index 03f4ba78..91dd31a6 100644 --- a/src/Admin/Form/Fields/Sortable.php +++ b/src/Admin/Form/Fields/Sortable.php @@ -40,6 +40,23 @@ public function render() ] ); } + /** + * @return string + */ + public function getLabel() + { + return $this->getField()->getLabel(); + } + + /** + * @param string $label + * @return HasMany + */ + public function setLabel($label) + { + return $this->getField()->setLabel($label); + } + /** * @param Request $request * @return void