Skip to content

Commit 33dfaef

Browse files
authored
[data_dict (legacy)] fix description not updating upon refresh (#9681)
fixes #9618
1 parent c630837 commit 33dfaef

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

modules/datadict/ajax/UpdateDataDict.php

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
$client = new NDB_Client();
3030
$client->initialize();
3131

32+
$DB = \NDB_Factory::singleton()->database();
3233

3334
list($name,$extra) = explode("___", $_REQUEST['fieldname']);
3435

modules/datadict/php/datadict.class.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Datadict extends \DataFrameworkMenu
5959
*/
6060
public function getFieldOptions() : array
6161
{
62-
$instruments = \Utility::getAllInstruments();
62+
$instruments = \NDB_BVL_Instrument::getInstrumentNamesList($this->loris);
6363
$dictInstruments = [];
6464
$user = \User::singleton();
6565

modules/datadict/php/fields.class.inc

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class Fields extends \NDB_Page
3535
}
3636
return new \LORIS\Http\Response\JSON\OK(
3737
[
38-
'sourceFrom' => \Utility::getAllInstruments(),
38+
'sourceFrom' =>
39+
\NDB_BVL_Instrument::getInstrumentNamesList($this->loris),
3940
'cohort' => $cohort_options
4041
]
4142
);

0 commit comments

Comments
 (0)