Has populate_list stopped working for quotes in 7.10?

We had a pretty simple customization in 7.8 that was populate a phone number and email field when a contact relate field was populated in quotes. After upgrading to 7.10 it no longer works. 

We were adding the following to the vardef

$dictionary['Quote']['fields']['customer_name_c']['populate_list'][0] = 'name';
$dictionary['Quote']['fields']['customer_name_c']['populate_list'][1] = 'id';
$dictionary['Quote']['fields']['customer_name_c']['populate_list'][2] = 'phone_work';
$dictionary['Quote']['fields']['customer_name_c']['populate_list'][3] = 'email1';
$dictionary['Quote']['fields']['customer_name_c']['field_list'][0] = 'customer_name_c';
$dictionary['Quote']['fields']['customer_name_c']['field_list'][1] = 'contact_id_c';
$dictionary['Quote']['fields']['customer_name_c']['field_list'][2] = 'cust_phone_number_c';
$dictionary['Quote']['fields']['customer_name_c']['field_list'][3] = 'email_c';

Worked in 7.8 no worky in 7.10

I can extend the js controller to do this but seems like we're moving backwards if this no longer works. 

Thanks for any help,

-pat

Parents
  • Eventually you have to set the attribute 'auto_populate':

    $dictionary['Quote']['fields']['customer_name_c']['auto_populate'] = true;

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • I added a relate contact field my_contact_c/contact_id_c and a phone field my_contact_phone_c to accounts.

    Then I created custom/Extension/modules/Accounts/Ext/Vardes/my_contact.php with following content:

    <?php
    $dictionary['Account']['fields']['my_contact_c']['auto_populate'] = true;
    $dictionary['Account']['fields']['my_contact_c']['populate_list'] = array(
    // source => target,
    'name' => 'my_contact_c',
    'id' => 'contact_id_c',
    'phone_work' => 'my_contact_phone_c',
    );
    ?>

    After clearing the cache and QR&R I could select a contact in an Account and teh field my_contact_phone_c was filled automatically.

    Thanks to Francesca Shiekh for the right direction!

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

Reply
  • I added a relate contact field my_contact_c/contact_id_c and a phone field my_contact_phone_c to accounts.

    Then I created custom/Extension/modules/Accounts/Ext/Vardes/my_contact.php with following content:

    <?php
    $dictionary['Account']['fields']['my_contact_c']['auto_populate'] = true;
    $dictionary['Account']['fields']['my_contact_c']['populate_list'] = array(
    // source => target,
    'name' => 'my_contact_c',
    'id' => 'contact_id_c',
    'phone_work' => 'my_contact_phone_c',
    );
    ?>

    After clearing the cache and QR&R I could select a contact in an Account and teh field my_contact_phone_c was filled automatically.

    Thanks to Francesca Shiekh for the right direction!

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

Children