Skip to content

Commit 651f654

Browse files
committed
Fix array/string conversion error in Model table selection
1 parent c51ad62 commit 651f654

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

classes/ModelModel.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ public function getDatabaseTableOptions()
236236
{
237237
$pluginCode = $this->getPluginCodeObj()->toCode();
238238

239-
$tables = DatabaseTableModel::listPluginTables($pluginCode);
239+
$tables = array_map(function ($item) {
240+
return $item['table'];
241+
}, DatabaseTableModel::listPluginTables($pluginCode));
242+
240243
return array_combine($tables, $tables);
241244
}
242245

0 commit comments

Comments
 (0)