When creating HistoricFormPropertyEntity query for HistoricActivityInstance isn't limited to the active one

Description

When creating HistoricFormPropertyEntity query for HistoricActivityInstance isn't limited to the active one. This causes an exception when the activity the form is submitted on, was already active at some point in the process (multiple entries in historic activities):

org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2

http://forums.activiti.org/en/viewtopic.php?f=6&t=1087

Environment

None

Assignee

Frederik Heremans

Reporter

Frederik Heremans

Labels

None

Fix versions

Priority

Major
Configure