Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Option labels not visible on filters select boxes
#5
First test:

Use "print_r" on the variable "$modulecollist" in Editview.php. Returns:

Code:
Array
(
    [Accounts] => Array
        (
            [Accountinformatie] => Array
                (
                    [vtiger_account:accountname:accountname:Accounts_Account_Name:V] => Accountnaam
                    [vtiger_account:account_no:account_no:Accounts_Account_No:V] => Account No
                    [vtiger_accountscf:cf_548:cf_548:Accounts_KI-nummer:V] => KI-nummer
                    [vtiger_accountscf:cf_569:cf_569:Accounts_Account_Type:V] => Account Type
                    [vtiger_account:phone:phone:Accounts_Phone:V] => Telefoon
                    [vtiger_accountscf:cf_576:cf_576:Accounts_Actief_APK?:V] => Actief APK?
                    [vtiger_account:email1:email1:Accounts_Email:V] => E-mail
                    [vtiger_account:fax:fax:Accounts_Fax:V] => Fax
                    [vtiger_crmentity:createdtime:createdtime:Accounts_Created_Time:DT] => Gemaakt
                    [vtiger_accountscf:cf_587:cf_587:Accounts_Via_Wederverkoper:V] => Via Wederverkoper
                    [vtiger_crmentity:modifiedtime:modifiedtime:Accounts_Modified_Time:DT] => Gewijzigd
                    [vtiger_accountscf:cf_583:cf_583:Accounts_Wordt_op_rekening_geleverd?:V] => Wordt op rekening geleverd?
                    [vtiger_account:emailoptout:emailoptout:Accounts_Email_Opt_Out:C] => E-mail optie uit
                    [vtiger_account:website:website:Accounts_Website:V] => Website
                    [vtiger_crmentity:smownerid:assigned_user_id:Accounts_Assigned_To:V] => Toegewezen aan
                    [vtiger_crmentity:modifiedby:modifiedby:Accounts_Last_Modified_By:V] => Last Modified By
                    [vtiger_accountscf:cf_736:cf_736:Accounts_BTW_/_Belasting_nummer:V] => BTW / Belasting nummer
                    [vtiger_accountscf:cf_742:cf_742:Accounts_Onderdeel_van:V] => Onderdeel van
                    [vtiger_accountscf:cf_883:cf_883:Accounts_Standaard_betalingstermijn:V] => Standaard betalingstermijn
                    [vtiger_accountscf:cf_884:cf_884:Accounts_Email_facturatie:E] => Email facturatie
                    [vtiger_account:exact_acc_vat:exact_acc_vat:Accounts_Exact_VAT_Code_for_Account:V] => Exact VAT Code for Account
                )

            [Adresinformatie] => Array
                (
                    [vtiger_accountbillads:bill_street:bill_street:Accounts_Billing_Address:V] => Postadres straat
                    [vtiger_accountshipads:ship_street:ship_street:Accounts_Shipping_Address:V] => Afleveradres straat
                    [vtiger_accountbillads:bill_code:bill_code:Accounts_Billing_Code:V] => Postadres Code
                    [vtiger_accountshipads:ship_code:ship_code:Accounts_Shipping_Code:V] => Afleveradres Code
                    [vtiger_accountbillads:bill_city:bill_city:Accounts_Billing_City:V] => Postadres Plaats
                    [vtiger_accountshipads:ship_city:ship_city:Accounts_Shipping_City:V] => Afleveradres Plaats
                    [vtiger_accountbillads:bill_country:bill_country:Accounts_Billing_Country:V] => Postadres Land
                    [vtiger_accountshipads:ship_country:ship_country:Accounts_Shipping_Country:V] => Afleveradres Land
                )

            [Omschrijving] => Array
                (
                    [vtiger_crmentity:description:description:Accounts_Description:V] => Omschrijving
                )

        )

)

Which is nice, since all the labels are intact at this point. Error occurs further down the line.

Which is in the function "getByModule_ColumnsList();". It produces a var called $choosecolslist, that looks like this excerp:
Code:
Array
(
    [Accounts - Accountinformatie] => Array
        (
            [0] => Array
                (
                    [value] => vtiger_account:accountname:accountname:Accounts_Account_Name:V
                    [text] => Accountnaam
                    [selected] =>
                )

            [1] => Array
                (
                    [value] => vtiger_account:account_no:account_no:Accounts_Account_No:V
                    [text] => Account Nr
                    [selected] =>
                )

            [2] => Array
                (
                    [value] => vtiger_accountscf:cf_548:cf_548:Accounts_KI-nummer:V
                    [text] =>
                    [selected] =>
                )

            [3] => Array
                (
                    [value] => vtiger_accountscf:cf_569:cf_569:Accounts_Account_Type:V
                    [text] =>
                    [selected] =>
                )

            [4] => Array
                (
                    [value] => vtiger_account:phone:phone:Accounts_Phone:V
                    [text] => Telefoon
                    [selected] =>
                )
Notice a lot of the values in the "test" keys are missing.

UPDATE
I've narrowed it down to this codeblock: https://github.com/tsolucio/corebos/blob/master/modules/CustomView/EditView.php#L191-L215

If I echo out the "$mod_strings[$fieldlabel]" value in the loop, I get the blank, missing values. If I echo out the "$fieldlabel", I get the correct values.

I think it has something to do with the "return_specified_module_language" function returning empty values. If I change the if statement on line 189 to
Code:
if(isset($mod_strings[$fieldlabel]) && $mod_strings[$fieldlabel] != "")
it's "solved", but the underlying issue is not detected yet..

By using
Code:
    echo "<pre>";
      print_r($mod_strings);
      echo "</pre>";

I can identify that the $mod_strings is missing the values, they're just empty.
Reply


Messages In This Thread
RE: Option labels not visible on filters select boxes - Guido1982 - 07-02-2016, 08:05 AM

Forum Jump:


Users browsing this thread: 8 Guest(s)