AnsweredAssumed Answered

initial_filter_fields replace double quotes (") with Ampersand (&)

Question asked by Asaf Army on Mar 20, 2015
Latest reply on Feb 8, 2016 by
i have a "payments" subpanel  (custom module) under invoices.
in order to filter the "Select" button, so it will show only the account of the invoice payments, in the payment search popup, i added a "initial_filter_fields" property and it works good.

in the payments search popup, i get the name of the account in "account name" field of the search.
but there are account names with double quotations like Microsoft LT"D or Apple LT"D (in my language, which is Hebrew, we add double quotations to the LTD to say that this is a 'short name of...').

The problem is that instead of getting Apple LT"D in the search popup account field, i get Apple LT&D. how can i avoid that? 

this is the code of the filter:

$layout_defs["AOS_Invoices"]["subpanel_setup"]['aos_invoices_py_payments_1'] = array (  'order' => 100,
  'module' => 'py_Payments',
  'subpanel_name' => 'default',
  'sort_order' => 'asc',
  'sort_by' => 'id',
  'get_subpanel_data' => 'aos_invoices_py_payments_1',
  'top_buttons' => 
  array (
    0 => 
    array (
      'widget_class' => 'SubPanelTopButtonQuickCreate',
    1 => 
    array (
      'widget_class' => 'SubPanelTopSelectButton',
      'mode' => 'MultiSelect',
      'initial_filter_fields' => array('billing_account' => 'accounts_py_payments_1_name_advanced','billing_contact' => 'contacts_py_payments_1_name_advanced'),

is there a way to avoid that?
or should i insert a non-upgrade code fix, in the "initial_filter_fields" code? where is this code by the way?

any help will do....
using CE version 6.5.13

this is an example: