From 9ff11da179c9da1ceaf20cf9848614074a5110d7 Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Sun, 9 Jul 2017 09:48:17 -0600 Subject: [PATCH] Remove unused descriptionFrom property Removes unused descriptionFrom property that was probably copy-pasta remnants from the RecordFinder formwidget when nameFrom was implemented in https://github.com/octobercms/october/commit/6aaf4cce43dd0f222a16bdcae962a1332ea5d4e2. Also removed it from the docs here: https://github.com/octobercms/docs/commit/6164e4a9e767354d1e57f727386d04b90b13eb5d --- modules/backend/formwidgets/Relation.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/backend/formwidgets/Relation.php b/modules/backend/formwidgets/Relation.php index c5f4699e5..0812379a6 100644 --- a/modules/backend/formwidgets/Relation.php +++ b/modules/backend/formwidgets/Relation.php @@ -28,11 +28,6 @@ class Relation extends FormWidgetBase */ public $nameFrom = 'name'; - /** - * @var string Model column to use for the description reference - */ - public $descriptionFrom = 'description'; - /** * @var string Custom SQL column selection to use for the name reference */ @@ -69,7 +64,6 @@ class Relation extends FormWidgetBase { $this->fillFromConfig([ 'nameFrom', - 'descriptionFrom', 'emptyOption', 'scope', ]);