Hi there
i'm running an old version of Espocrm (and cannot upgrade it now)
I have an issue on a Multi Enum that contains "long value"
I would like to search all contacts matching "Analyses basiques de la qualité de l'eau (pH, chlore, turbidité, aluminium, arsenic, colilert) / Basic analysis of water quality (pH, chlorine, turbidity, aluminum, arsenic, colilert)"
the SQL statement is
but it seems to be truncated in the table
in my json custom file Espo/Custom/Resources/metadata/entityDefs/Contact.json , it seems to be ok
Any idea?
If you have already a fix and that i can backport it easily to my espo version.. thanks for your help!
i'm running an old version of Espocrm (and cannot upgrade it now)
I have an issue on a Multi Enum that contains "long value"
I would like to search all contacts matching "Analyses basiques de la qualité de l'eau (pH, chlore, turbidité, aluminium, arsenic, colilert) / Basic analysis of water quality (pH, chlorine, turbidity, aluminum, arsenic, colilert)"
the SQL statement is
Code:
[2021-05-26 14:05:29] Espo.DEBUG: SQL: SELECT DISTINCT contact.id AS `id`, contact.assigned_user_id AS `assignedUserId`, contact.created_by_id AS `createdById`, contact.type_de_contact AS `typeDeContact`, contact.salutation_name AS `salutationName`, contact.first_name AS `firstName`, contact.last_name AS `lastName`, TRIM(CONCAT(IFNULL(contact.first_name, ''), ' ', IFNULL(contact.last_name, ''))) AS `name`, LEFT(contact.observations_fondation, 5000) AS `observationsFondation`, contact.societe AS `societe`, contact.poste AS `poste`, emailAddresses.opt_out AS `emailAddressIsOptedOut`, emailAddresses.name AS `emailAddress`, contact.created_at AS `createdAt`, contact.account_id AS `accountId`, account.name AS `accountName` FROM `contact` LEFT JOIN `account` AS `account` ON contact.account_id = account.id LEFT JOIN `array_value` AS `arrayFilter43637` ON arrayFilter43637.entity_id = contact.id AND arrayFilter43637.entity_type = 'Contact' AND arrayFilter43637.attribute = 'multiCompetenceEau' LEFT JOIN `entity_email_address` AS `emailAddressesMiddle` ON contact.id = emailAddressesMiddle.entity_id AND emailAddressesMiddle.deleted = '0' AND emailAddressesMiddle.primary = '1' AND emailAddressesMiddle.entity_type = 'Contact' LEFT JOIN `email_address` AS `emailAddresses` ON emailAddresses.id = emailAddressesMiddle.email_address_id AND emailAddresses.deleted = '0' [B]WHERE (arrayFilter43637.value IN ('Analyses basiques de la qualité de l\'eau (pH, chlore, turbidité, aluminium, arsenic, colilert) / Basic analysis of water quality (pH, chlorine, turbidity, aluminum, arsenic, colilert)'))[/B] AND contact.deleted = '0' ORDER BY contact.created_at DESC LIMIT 0, 200 [] []
Code:
| 6071ff228836687f7 | 0 | Analyses basiques de la qualité de l'eau (pH, chlore, turbidité, aluminium, arsenic, colilert) / Bas | multiCompetenceEau | 6071ff228086c8017 | Contact |
in my json custom file Espo/Custom/Resources/metadata/entityDefs/Contact.json , it seems to be ok
Code:
"multiCompetenceEau": { "type": "multiEnum", "storeArrayValues": true, "required": false, "options": [ "Analyses basiques de la qualité de l'eau (pH, chlore, turbidité, aluminium, arsenic, colilert) / Basic analysis of water quality (pH, chlorine, turbidity, aluminum, arsenic, colilert)", "Analyses complexes de la qualité de l'eau (hydrocarbures, dénombrement bactérien ...) / Advanced analyses of water quality (hydrocarbons, bacterial count, etc.)", "Analyses basiques des effluents et boues (DCO, DBO, MES, siccité...) / Basic analyses of effluent and sludge (COD, BOD, SS, dessication, etc.)", "Dimensionnement de réseau AEP / Drinking water supply network sizing design", "Dimensionnement de réseau ASST / Waste water system network sizingdesign",
If you have already a fix and that i can backport it easily to my espo version.. thanks for your help!
Comment