diff --git a/app/contacts/app_languages.php b/app/contacts/app_languages.php index 3fe87cdaae..213abf5a59 100644 --- a/app/contacts/app_languages.php +++ b/app/contacts/app_languages.php @@ -1700,6 +1700,30 @@ $text['message-access_denied']['zh-cn'] = "拒绝访问"; $text['message-access_denied']['ja-jp'] = "アクセス拒否"; $text['message-access_denied']['ko-kr'] = "접근 불가"; +$text['message-uploaded']['en-us'] = "File Uploaded"; +$text['message-uploaded']['en-gb'] = "File Uploaded"; +$text['message-uploaded']['ar-eg'] = "ملف محمول"; +$text['message-uploaded']['de-at'] = "Datei hochgeladen"; +$text['message-uploaded']['de-ch'] = "Datei hochgeladen"; +$text['message-uploaded']['de-de'] = "Datei hochgeladen"; +$text['message-uploaded']['es-cl'] = "Subida de Archivos"; +$text['message-uploaded']['es-mx'] = "Subida de Archivos"; +$text['message-uploaded']['fr-ca'] = "Fichier téléchargé"; +$text['message-uploaded']['fr-fr'] = "Fichier téléchargé"; +$text['message-uploaded']['he-il'] = "הקובץ הועלה"; +$text['message-uploaded']['it-it'] = "File Caricato"; +$text['message-uploaded']['nl-nl'] = "Bestand opsturen"; +$text['message-uploaded']['pl-pl'] = "Dodany Plik"; +$text['message-uploaded']['pt-br'] = "Arquivo Enviado"; +$text['message-uploaded']['pt-pt'] = "Arquivo Enviado"; +$text['message-uploaded']['ro-ro'] = "Fișier încărcat"; +$text['message-uploaded']['ru-ru'] = "Файл загружен"; +$text['message-uploaded']['sv-se'] = "File Uppladdade"; +$text['message-uploaded']['uk-ua'] = "файл Завантажено"; +$text['message-uploaded']['zh-cn'] = "文件已上传"; +$text['message-uploaded']['ja-jp'] = "ファイルがアップロードされました"; +$text['message-uploaded']['ko-kr'] = "업로드된 파일"; + $text['label-voice']['en-us'] = "Voice"; $text['label-voice']['en-gb'] = "Voice"; $text['label-voice']['ar-eg'] = "صوت"; @@ -7174,6 +7198,31 @@ $text['label-click_to_call']['zh-cn'] = "点击通话"; $text['label-click_to_call']['ja-jp'] = "電話するにはクリック"; $text['label-click_to_call']['ko-kr'] = "클릭 투 콜"; +$text['label-search']['en-us'] = "Search..."; +$text['label-search']['en-gb'] = "Search..."; +$text['label-search']['ar-eg'] = "يبحث"; +$text['label-search']['de-at'] = "Suchen..."; +$text['label-search']['de-ch'] = "Suchen..."; +$text['label-search']['de-de'] = "Suchen..."; +$text['label-search']['el-gr'] = "Αναζήτηση..."; +$text['label-search']['es-cl'] = "Buscar..."; +$text['label-search']['es-mx'] = "Buscar..."; +$text['label-search']['fr-ca'] = "Chercher..."; +$text['label-search']['fr-fr'] = "Chercher..."; +$text['label-search']['he-il'] = "לחפש"; +$text['label-search']['it-it'] = "Ricerca..."; +$text['label-search']['nl-nl'] = "Zoeken..."; +$text['label-search']['pl-pl'] = "Wyszukaj..."; +$text['label-search']['pt-br'] = "Pesquisar..."; +$text['label-search']['pt-pt'] = "Pesquisar..."; +$text['label-search']['ro-ro'] = "Căutare..."; +$text['label-search']['ru-ru'] = "Поиск..."; +$text['label-search']['sv-se'] = "Sök..."; +$text['label-search']['uk-ua'] = "Пошук..."; +$text['label-search']['zh-cn'] = "搜索"; +$text['label-search']['ja-jp'] = "検索"; +$text['label-search']['ko-kr'] = "찾다"; + $text['label-setting']['en-us'] = "Setting"; $text['label-setting']['en-gb'] = "Setting"; $text['label-setting']['ar-eg'] = "جلسة"; diff --git a/app/contacts/contact_attachment_edit.php b/app/contacts/contact_attachment_edit.php index 5c22fb2df3..e4eb0d7209 100644 --- a/app/contacts/contact_attachment_edit.php +++ b/app/contacts/contact_attachment_edit.php @@ -95,18 +95,18 @@ //format array $allowed_extensions = array_keys(json_decode($_SESSION['contact']['allowed_attachment_types']['text'], true)); - $array['contact_attachments'][$index]['contact_attachment_uuid'] = $action == 'update' ? $contact_attachment_uuid : uuid(); - $array['contact_attachments'][$index]['domain_uuid'] = $_SESSION['domain_uuid'] ?? ''; - $array['contact_attachments'][$index]['contact_uuid'] = $contact_uuid; - $array['contact_attachments'][$index]['attachment_primary'] = $allowed_primary_attachment ? 1 : 0; + $array['contact_attachments'][0]['contact_attachment_uuid'] = $action == 'update' ? $contact_attachment_uuid : uuid(); + $array['contact_attachments'][0]['domain_uuid'] = $_SESSION['domain_uuid'] ?? ''; + $array['contact_attachments'][0]['contact_uuid'] = $contact_uuid; + $array['contact_attachments'][0]['attachment_primary'] = $allowed_primary_attachment ? 1 : 0; if ($attachment['error'] == '0' && in_array(strtolower(pathinfo($attachment['name'], PATHINFO_EXTENSION)), $allowed_extensions)) { - $array['contact_attachments'][$index]['attachment_filename'] = $attachment['name']; - $array['contact_attachments'][$index]['attachment_content'] = base64_encode(file_get_contents($attachment['tmp_name'])); + $array['contact_attachments'][0]['attachment_filename'] = $attachment['name']; + $array['contact_attachments'][0]['attachment_content'] = base64_encode(file_get_contents($attachment['tmp_name'])); } - $array['contact_attachments'][$index]['attachment_description'] = $attachment_description; + $array['contact_attachments'][0]['attachment_description'] = $attachment_description; if ($action == 'add') { - $array['contact_attachments'][$index]['attachment_uploaded_date'] = 'now()'; - $array['contact_attachments'][$index]['attachment_uploaded_user_uuid'] = $_SESSION['user_uuid']; + $array['contact_attachments'][0]['attachment_uploaded_date'] = 'now()'; + $array['contact_attachments'][0]['attachment_uploaded_user_uuid'] = $_SESSION['user_uuid']; } //save data @@ -117,7 +117,7 @@ unset($array); //redirect - message::add($text['message-message_'.($action == 'update' ? 'updated' : 'added')]); + message::add($text['message-'.($action == 'update' ? 'update' : 'uploaded')]); header('Location: contact_edit.php?id='.$contact_uuid); exit; diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index 80c9ac7101..dc795c6b06 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -365,10 +365,10 @@ $array['contacts'][0]['contact_phones'][$y]['contact_uuid'] = $contact_uuid; $array['contacts'][0]['contact_phones'][$y]['contact_phone_uuid'] = $row["contact_phone_uuid"]; $array['contacts'][0]['contact_phones'][$y]['phone_label'] = $row["phone_label"]; - $array['contacts'][0]['contact_phones'][$y]['phone_type_voice'] = $row["phone_type_voice"] ?? ''; - $array['contacts'][0]['contact_phones'][$y]['phone_type_fax'] = $row["phone_type_fax"]; - $array['contacts'][0]['contact_phones'][$y]['phone_type_video'] = $row["phone_type_video"] ?? ''; - $array['contacts'][0]['contact_phones'][$y]['phone_type_text'] = $row["phone_type_text"]; + $array['contacts'][0]['contact_phones'][$y]['phone_type_voice'] = $row["phone_type_voice"] ?? null; + $array['contacts'][0]['contact_phones'][$y]['phone_type_fax'] = $row["phone_type_fax"] ?? null; + $array['contacts'][0]['contact_phones'][$y]['phone_type_video'] = $row["phone_type_video"] ?? null; + $array['contacts'][0]['contact_phones'][$y]['phone_type_text'] = $row["phone_type_text"] ?? null; $array['contacts'][0]['contact_phones'][$y]['phone_speed_dial'] = $row["phone_speed_dial"]; $array['contacts'][0]['contact_phones'][$y]['phone_country_code'] = $row["phone_country_code"]; $array['contacts'][0]['contact_phones'][$y]['phone_number'] = $row["phone_number"]; @@ -1067,7 +1067,7 @@ echo "
\n"; @@ -1725,10 +1727,10 @@ if (permission_exists('contact_phone_view')) { echo " ".$text['label-phone_type']."\n"; echo " \n"; echo "