From 7cbbfe1d3ae4aab020811318acb390c876095a5f Mon Sep 17 00:00:00 2001 From: Pravin_s Date: Wed, 4 Sep 2019 15:15:34 +0530 Subject: [PATCH] Task #177 fix: retrive correct details about cluster --- administrator/models/fields/cluster.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/administrator/models/fields/cluster.php b/administrator/models/fields/cluster.php index 06282931..51a400e8 100644 --- a/administrator/models/fields/cluster.php +++ b/administrator/models/fields/cluster.php @@ -83,7 +83,7 @@ protected function getOptions() // Create oprion for each cluster foreach ($clusters as $cluster) { - $options[] = HTMLHelper::_('select.option', $cluster->id, trim($cluster->name)); + $options[] = HTMLHelper::_('select.option', $cluster->cluster_id, trim($cluster->name)); } if (!$this->loadExternally) @@ -123,7 +123,6 @@ protected function getInput() if (!empty($clusterId)) { $this->value = $clusterId; - $this->readonly = true; } return parent::getInput();