Skip to content

Commit 84c2023

Browse files
committed
Fix autocompletion issue
1 parent 3219678 commit 84c2023

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @var string
2222
*/
23-
define('MPG_APP_VERSION', '0.9.4');
23+
define('MPG_APP_VERSION', '0.9.5');
2424

2525
/**
2626
* Development mode?

static/js/mpg.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,13 @@ MPG.eventListeners.addCollections = function() {
257257
'/ajax/database/' + MPG.databaseName + '/collection/'
258258
+ MPG.collectionName + '/enumFields',
259259
function(response) {
260-
MPG.collectionFields = JSON.parse(response);
260+
261+
JSON.parse(response).forEach(function(collectionField) {
262+
if ( typeof collectionField === 'string' ) {
263+
MPG.collectionFields.push(collectionField);
264+
}
265+
});
266+
261267
},
262268
null
263269
);

0 commit comments

Comments
 (0)