EZP-21735: fixed using non existent variable
Merge pull request #824 from ezsystems/fix-EZP-21735-relation-not-showing

EZP-21735: fixed using undefined variable