Skip to content

Commit

Permalink
Feat(User): add default_entity (pluginsGLPI#419)
Browse files Browse the repository at this point in the history
* Feat(User): add default_entity

* adapt CHANGELOG
  • Loading branch information
stonebuzz authored Oct 10, 2024
1 parent 2a8ac46 commit 6d4b627
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added

- Display max upload size
- Add ```default_entity``` to ```User``` injection mapping

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion inc/userinjection.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function getOptions($primary_type = '')

//Remove some options because some fields cannot be imported
$blacklist = PluginDatainjectionCommonInjectionLib::getBlacklistedOptions(get_parent_class($this));
$notimportable = [13, 14, 15, 17, 20, 23, 30, 31, 60, 61, 77, 91, 92, 93];
$notimportable = [13, 14, 15, 17, 20, 23, 30, 31, 60, 61, 91, 92, 93];

$options['ignore_fields'] = array_merge($blacklist, $notimportable);

Expand Down

0 comments on commit 6d4b627

Please sign in to comment.