Merge #15766 - Fix #15741 - Fatal javascript error on clicking "Pick from Central Columns"

Pull-request: #15766
Fixes: #15741
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-01-11 16:05:48 +01:00
commit 30a0bfdc31
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ if (isset($_POST['populateColumns'])) {
exit;
}
if (isset($_POST['getColumnList'])) {
$response->addJSON($controller->getColumnList([
$response->addJSON('message', $controller->getColumnList([
'cur_table' => $_POST['cur_table'] ?? null,
]));
exit;

View File

@ -3561,7 +3561,7 @@ AJAX.registerOnload('functions.js', function () {
url: href,
data: params,
success: function (data) {
centralColumnList[db + '_' + table] = JSON.parse(data.message);
centralColumnList[db + '_' + table] = data.message;
},
async:false
});