When you set an instance status to aborted in the
admininstance form the instance status IS set to
aborted but the instance-activity record is not erased.
When you abort an intsnace (like in GUI) this field is
normally erased. This make this table
(activity-instance) have some ghost records which can
hurt some count request. in fact you then 2 type of
aborted instances the ones you can only see in the
instance table and the one still in activity-instance.
Maybe this value of status should be handled separately
(not in the select list but an action link?). ==> this
make me think at another bug, when you have an already
aborted instance and you set it to active you do not
have any activity associated with it anymore, so maybe
you should not be able to change this status anymore.