Metadata proposal - add 'title' to pseudoconstant definition
I'm just looking at some of the hoops the Contribute_BAO_Query object does to get the title for the field 'contribution_page_id'. This is something we've hit a bit - ie using an entity reference field the 'title' of the field is 'Contribution Page ID' but ideally we would display 'Contribution Page' if rendering an entity reference.
I'd like to propose a second title field
<field>
<name>contribution_page_id</name>
<title>Contribution Page ID</title>
<type>int unsigned</type>
<import>true</import>
<comment>The Contribution Page which triggered this contribution</comment>
<pseudoconstant>
<table>civicrm_contribution_page</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
** <title>Contribution Page</title>**
</pseudoconstant>
<html>
<type>Select</type>
</html>
<add>1.5</add>
</field>