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
  • 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',
        ),
Reply
  • 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',
        ),
Children
No Data