make sure values are stored in the hidden input correctly
Merge pull request #323 from plone/davisagli-fix-relateditems

make sure values are stored in the hidden input correctly