Import into custom Multiselect field fails

I have posted this in General Discussions, but I don’t think anyone looked, so I am trying my luck here. :slight_smile:

…"I am wondering what am I doing wrong?

I am stuck in migrating our data from our current CRM.
My current task is to create several custom Multiselect fields and populate them with our data.
As a test, I created a dummy Multiselect Field for a test Contact.
I used one of the generic Lists that pop by default.
Then I selected several values from that list and saved.
Next I exported the test Contact to see how the future import file should be formatted.
Next, I erased the values in the dummy Multiselect Field of my test Contact and saved.
Then I tried to import the exported file ( created by the SuiteCRM ) as a test to see if my previously manually entered data will be duplicated.
This is when the import failed.

This is the error ( it said Warning, but am pretty sure it is an error as the import did not happen) I got:
WARNING: [2] Declaration of SugarFieldMultienum::displayFromFunc($displayType, $parentFieldArray, $vardef, $displayParams, $tabindex) should be compatible with SugarFieldEnum::displayFromFunc($displayType, $parentFieldArray, $vardef, $displayParams, $tabindex = 0) on line 42 in file /var/www/html/MyNewCRM/include/SugarFields/Fields/Multienum/SugarFieldMultienum.php

Any ideas what went wrong here? "…

I already fixed this, but it hasn’t been released yet.

Just go into this file

include/SugarFields/Fields/Multienum/SugarFieldMultienum.php

and around line 61, add “= 0” to the last parameter, to make it look like this:

function displayFromFunc( $displayType, $parentFieldArray, $vardef, $displayParams, $tabindex = 0) {
1 Like

Thank you!
I am trying to implement this fix but don’t seem to be able to save the changes. I am still pretty new to suiteCRM AND Linux so I think I am having some kind of permissions issue. I was wondering if you could comment/help.

In Admin I set the Developer Mode in System Settings to “ON”. Then, in terminal, I navigated to the directory and “sudo gedit SugarFieldMultienum.php” file, edited the line, but don’t seem to be able to save the file.

Soooo close…, pleeease show me the way :slight_smile:

Thanks again,
Greg

It doens’t make much sense to not be able to edit a file as sudo…

Just add permissions to the file, you can search online for how to do it.

Figured it out - it was my inattention to the detail - all is well now. The imports to Multi are working great now. Thanks so much again for the quick reply on how to fix this. BTW, backing up via VM was an awesome tip - thanks for that as well!

Slowly learning Linux and Suite as I go along migrating our ancient bloated Maximizer 7. I will figure out how to change the height of Multi yet. :slight_smile:

Greg