From db7dbb174ea7b807c2fb0b80ff473503ac0da2d3 Mon Sep 17 00:00:00 2001 From: daitingting Date: Thu, 16 Nov 2023 07:21:38 +0000 Subject: [PATCH] * Set value for picker items. --- module/stakeholder/control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/stakeholder/control.php b/module/stakeholder/control.php index 21ede72b2c..fdf3110614 100644 --- a/module/stakeholder/control.php +++ b/module/stakeholder/control.php @@ -213,7 +213,7 @@ class stakeholder extends control } $items = array(); - foreach($members as $account => $realname) $items[] = array('key' => $account, 'text' => $realname); + foreach($members as $account => $realname) $items[] = array('value' => $account, 'text' => $realname); return print(json_encode($items)); } @@ -247,7 +247,7 @@ class stakeholder extends control } $userItems = array(); - foreach($companyUsers as $account => $realname) $userItems[] = array('text' => $realname, 'key' => $account); + foreach($companyUsers as $account => $realname) $userItems[] = array('text' => $realname, 'value' => $account); return print(json_encode($userItems)); } @@ -268,7 +268,7 @@ class stakeholder extends control } $items = array(); - foreach($users as $account => $realname) $items[] = array('text' => $realname, 'key' => $account); + foreach($users as $account => $realname) $items[] = array('text' => $realname, 'value' => $account); return print(json_encode($items)); }