Issue #1139238 by wondex, s_leu: Add relevant meta data in the 'potential_references' db query to allow smart alteration.