Skip to content

Commit

Permalink
Fix autocompletion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelTallet committed Jul 14, 2020
1 parent 3219678 commit 84c2023
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @var string
*/
define('MPG_APP_VERSION', '0.9.4');
define('MPG_APP_VERSION', '0.9.5');

/**
* Development mode?
Expand Down
8 changes: 7 additions & 1 deletion static/js/mpg.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,13 @@ MPG.eventListeners.addCollections = function() {
'/ajax/database/' + MPG.databaseName + '/collection/'
+ MPG.collectionName + '/enumFields',
function(response) {
MPG.collectionFields = JSON.parse(response);

JSON.parse(response).forEach(function(collectionField) {
if ( typeof collectionField === 'string' ) {
MPG.collectionFields.push(collectionField);
}
});

},
null
);
Expand Down

0 comments on commit 84c2023

Please sign in to comment.