fixes #2125 - problem with custom field code in event structure.
Merge pull request #2254 from dotCMS/issue-2125-Event-Creation

fixes #2125 - problem with custom field code in event structure.