Skip to content

Commit

Permalink
Exclusde by default some types of fields in the "list" view
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Dec 25, 2015
1 parent 9b55775 commit 24f5b86
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Configuration/Configurator.php
Expand Up @@ -271,11 +271,6 @@ private function filterListFieldsBasedOnSmartGuesses(array $entityFields)
$excludedFieldNames = array('password', 'salt', 'slug', 'updatedAt', 'uuid');
$excludedFieldTypes = array('array', 'binary', 'blob', 'guid', 'json_array', 'object', 'simple_array', 'text');

// if the entity has few fields, show them all
if (count($entityFields) <= $maxListFields) {
return $entityFields;
}

// if the entity has a lot of fields, try to guess which fields we can remove
$filteredFields = $entityFields;
foreach ($entityFields as $name => $metadata) {
Expand Down

0 comments on commit 24f5b86

Please sign in to comment.