Skip to content

Commit

Permalink
Fix(Injection): fix datainjection mapping error with fields
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz authored Jul 10, 2024
1 parent 8c1ed36 commit 70fe3ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Fix strpslashes log error (#802)
- Update main item ```date_mod``` after updating additional fields
- Fix ```datainjection``` error when trying to map fields

## [1.21.10] - 2024-06-11

Expand Down
11 changes: 1 addition & 10 deletions templates/injection.class.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,7 @@ class %%CLASSNAME%%Injection extends %%CLASSNAME%% implements PluginDatainjectio
* @return string
**/
static function getTable($classname = null) {
if ($classname === null) {
return '';
}
$parent_class = get_parent_class($classname);

if ($parent_class === false) {
return '';
}

return getTableForItemType($parent_class);
return getTableForItemType(get_parent_class());
}

static function getTypeName($nb = 0) {
Expand Down

0 comments on commit 70fe3ca

Please sign in to comment.