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 Reply Children
  • Hmmm.... I don't remember ever including that before. And still doesn't work. Below is the full vardef from cache/modules/Quotes/Quotevardefs.php. Another strange side effect is that it does put the name value from the Contact into the name of Quote. See image below. No Customer Email, not Customer Phone Number but the Customer Name becomes the Quote Subject. 

        'customer_name_c' => 
        array (
          'labelValue' => 'Customer',
          'dependency' => '',
          'populate_list' =>
          array (
            0 => 'name',
            1 => 'id',
            2 => 'phone_work',
            3 => 'email1',
          ),
          'field_list' =>
          array (
            0 => 'customer_name_c',
            1 => 'contact_id_c',
            2 => 'cust_phone_number_c',
            3 => 'email_c',
          ),
          'auto_populate' => true,
          'required' => true,
          'source' => 'non-db',
          'name' => 'customer_name_c',
          'vname' => 'LBL_CUSTOMER_NAME',
          'type' => 'relate',
          'massupdate' => false,
          'no_default' => false,
          'comments' => '',
          'help' => '',
          'importable' => 'true',
          'duplicate_merge' => 'disabled',
          'duplicate_merge_dom_value' => 0,
          'audited' => false,
          'reportable' => true,
          'unified_search' => false,
          'merge_filter' => 'disabled',
          'calculated' => false,
          'len' => 255,
          'size' => '20',
          'id_name' => 'contact_id_c',
          'ext2' => 'Contacts',
          'module' => 'Contacts',
          'rname' => 'name',
          'quicksearch' => 'enabled',
          'studio' => 'visible',
          'id' => 'Quotescustomer_name_c',
          'custom_module' => 'Quotes',
        ),
  • Could it be a syntax issue?

    This is working for me in 7.9.2, note that the entry is named, not numbered. I've not yet installed 7.10.x

    $dictionary['Product']['fields']['product_template_name']['populate_list']['platforms_available_c'] = 'platforms_available_c';

     

    FrancescaS

  • 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