@@ 850-861 (lines=12) @@ | ||
847 | ||
848 | foreach ($userDataObj as $field => $value) { |
|
849 | switch ($field) { |
|
850 | case 'title': |
|
851 | $titleData = json_decode(json_encode($value), true); |
|
852 | ||
853 | if ($user_entity->language === 'fr') { |
|
854 | $user_entity->set('job', $titleData['fr'].' / '.$titleData['en']); |
|
855 | } else { |
|
856 | $user_entity->set('job', $titleData['en'].' / '.$titleData['fr']); |
|
857 | } |
|
858 | ||
859 | break; |
|
860 | case 'classification': |
|
861 | $classificationData = json_decode(json_encode($value), true); |
|
862 | ||
863 | $user_entity->set('classification', json_encode($value)); |
|
864 | break; |
|
@@ 865-877 (lines=13) @@ | ||
862 | ||
863 | $user_entity->set('classification', json_encode($value)); |
|
864 | break; |
|
865 | case 'department': |
|
866 | $deptData = json_decode(json_encode($value), true); |
|
867 | ||
868 | if ($user_entity->language === 'fr') { |
|
869 | $user_entity->set('department', $deptData['fr'].' / '.$deptData['en']); |
|
870 | } else { |
|
871 | $user_entity->set('department', $deptData['en'].' / '.$deptData['fr']); |
|
872 | } |
|
873 | break; |
|
874 | case 'branch': |
|
875 | $branchData = json_decode(json_encode($value), true); |
|
876 | ||
877 | $user_entity->set('branch', json_encode($value)); |
|
878 | break; |
|
879 | case 'sector': |
|
880 | $sectorData = json_decode(json_encode($value), true); |