Commit c57b12d3 authored by Bastien Ho's avatar Bastien Ho :alien:
Browse files

Real limit is 128 char.

parent b9865d81
No related merge requests found
Pipeline #21952 passed with stages
in 2 seconds
Showing with 2 additions and 2 deletions
+2 -2
......@@ -121,8 +121,8 @@ function civicrm_api3_education_nationale_populate($params) {
}
// Post cleanup
if(strlen($item['organization_name']) > 144){
$item['organization_name'] = substr($item['organization_name'], 0, 142).'…';
if(strlen($item['organization_name']) > 128){
$item['organization_name'] = substr($item['organization_name'], 0, 127).'…';
}
$EducationalInstitutions[] = civicrm_api3('Contact', 'create', $item)['id'];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment