From 7ffc213aa99c429bc0763f5896a82f3085fcabf2 Mon Sep 17 00:00:00 2001 From: Madhu S R <madhu.sr@vtigersolutions.com> Date: Wed, 3 Apr 2024 12:31:18 +0530 Subject: [PATCH] #Fixes::159015734::madhusr::Canceled status is not updating in the project task module --- .gitignore | 1 + modules/Migration/schema/811_to_812.php | 12 ++++++++++++ .../ProjectTask/languages/en_us/ProjectTask.php | 2 +- .../Arabic_ar_ae/modules/ProjectTask.php | 2 +- .../modules/ProjectTask.php | 2 +- .../modules/ProjectTask.php | 2 +- .../translations/Deutsch/modules/ProjectTask.php | 2 +- .../translations/Dutch/modules/ProjectTask.php | 2 +- .../translations/French/modules/ProjectTask.php | 2 +- .../translations/Hungarian/modules/ProjectTask.php | 2 +- .../modules/ProjectTask.php | 2 +- .../modules/ProjectTask.php | 2 +- .../PolishLanguagePack_pl_pl/modules/ProjectTask.php | 2 +- .../modules/ProjectTask.php | 2 +- .../translations/Russian/modules/ProjectTask.php | 2 +- .../translations/Spanish/modules/ProjectTask.php | 2 +- .../Sweden_sv_se/modules/ProjectTask.php | 2 +- .../modules/ProjectTask.php | 2 +- 18 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 modules/Migration/schema/811_to_812.php diff --git a/.gitignore b/.gitignore index 1b58a9326..585abce2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vendor/* !vendor/.htaccess +.vscode/* \ No newline at end of file diff --git a/modules/Migration/schema/811_to_812.php b/modules/Migration/schema/811_to_812.php new file mode 100644 index 000000000..63d5741af --- /dev/null +++ b/modules/Migration/schema/811_to_812.php @@ -0,0 +1,12 @@ +<?php +if (defined('VTIGER_UPGRADE')) { +ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING); +ini_set('display_errors', 'On'); +include_once 'include/utils/utils.php'; +include_once 'includes/runtime/Viewer.php'; +include_once 'includes/runtime/LanguageHandler.php'; +global $adb, $current_user; + $db = PearDatabase::getInstance(); + + $db->pquery('UPDATE vtiger_projecttaskstatus set projecttaskstatus = "Canceled" where projecttaskstatus = "Canceled "', array()); +} \ No newline at end of file diff --git a/pkg/vtiger/modules/Projects/ProjectTask/languages/en_us/ProjectTask.php b/pkg/vtiger/modules/Projects/ProjectTask/languages/en_us/ProjectTask.php index 989af3a65..b76a25758 100644 --- a/pkg/vtiger/modules/Projects/ProjectTask/languages/en_us/ProjectTask.php +++ b/pkg/vtiger/modules/Projects/ProjectTask/languages/en_us/ProjectTask.php @@ -45,6 +45,6 @@ $languageStrings = array( 'In Progress' => 'In Progress', 'Completed' => 'Completed', 'Deferred' => 'Deferred', - 'Canceled ' => 'Canceled', + 'Canceled' => 'Canceled', 'LBL_NO_DATE_VALUE_MSG' => 'or Project Tasks do not have Start and/or End Date', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/Arabic_ar_ae/modules/ProjectTask.php b/pkg/vtiger/translations/Arabic_ar_ae/modules/ProjectTask.php index 405d965ad..94d86ad63 100644 --- a/pkg/vtiger/translations/Arabic_ar_ae/modules/ProjectTask.php +++ b/pkg/vtiger/translations/Arabic_ar_ae/modules/ProjectTask.php @@ -45,6 +45,6 @@ $languageStrings = array( 'In Progress' => 'ÙÙŠ التقدم', 'Completed' => 'الانتهاء', 'Deferred' => 'تأجيل', - 'Canceled ' => 'ألغيت', + 'Canceled' => 'ألغيت', 'LBL_NO_DATE_VALUE_MSG' => 'أو مهام المشروع لا يكون البدء Ùˆ / أو تاريخ الانتهاء', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/BrazilianLanguagePack_bz_bz/modules/ProjectTask.php b/pkg/vtiger/translations/BrazilianLanguagePack_bz_bz/modules/ProjectTask.php index 9abc86377..eddfd7583 100644 --- a/pkg/vtiger/translations/BrazilianLanguagePack_bz_bz/modules/ProjectTask.php +++ b/pkg/vtiger/translations/BrazilianLanguagePack_bz_bz/modules/ProjectTask.php @@ -45,6 +45,6 @@ $languageStrings = array( 'In Progress' => 'Em Andamento', 'Completed' => 'ConcluÃdo', 'Deferred' => 'Adiado', - 'Canceled ' => 'Cancelado', + 'Canceled' => 'Cancelado', 'LBL_NO_DATE_VALUE_MSG' => 'ou a Tarefa do Projeto não tem Data InÃcio e/ou Data Fim', ); diff --git a/pkg/vtiger/translations/BritishLanguagePack_br_br/modules/ProjectTask.php b/pkg/vtiger/translations/BritishLanguagePack_br_br/modules/ProjectTask.php index 4515429b7..47d25164a 100644 --- a/pkg/vtiger/translations/BritishLanguagePack_br_br/modules/ProjectTask.php +++ b/pkg/vtiger/translations/BritishLanguagePack_br_br/modules/ProjectTask.php @@ -42,6 +42,6 @@ $languageStrings = array( 'In Progress' => 'In Progress', 'Completed' => 'Completed', 'Deferred' => 'Deferred', - 'Canceled ' => 'Canceled', + 'Canceled' => 'Canceled', 'LBL_NO_DATE_VALUE_MSG' => 'or Project Tasks do not have Start and/or End Date', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/Deutsch/modules/ProjectTask.php b/pkg/vtiger/translations/Deutsch/modules/ProjectTask.php index 266e7c7af..aff889392 100644 --- a/pkg/vtiger/translations/Deutsch/modules/ProjectTask.php +++ b/pkg/vtiger/translations/Deutsch/modules/ProjectTask.php @@ -43,6 +43,6 @@ $languageStrings = array( 'Canceled' => "Gestrichen", 'LBL_NO_DATE_VALUE_MSG' => 'oder Projektaufgaben nicht starten und / oder Enddatum', - 'Canceled ' => 'Abgebrochen', + 'Canceled' => 'Abgebrochen', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/Dutch/modules/ProjectTask.php b/pkg/vtiger/translations/Dutch/modules/ProjectTask.php index 1304f88ef..a4516cca7 100644 --- a/pkg/vtiger/translations/Dutch/modules/ProjectTask.php +++ b/pkg/vtiger/translations/Dutch/modules/ProjectTask.php @@ -42,6 +42,6 @@ $languageStrings = array( 'In Progress' => 'In Progress', 'Completed' => 'Completed', 'Deferred' => 'Deferred', - 'Canceled ' => 'Canceled', + 'Canceled' => 'Canceled', 'LBL_NO_DATE_VALUE_MSG' => 'of Projecttaken heb geen Start en / of Einddatum', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/French/modules/ProjectTask.php b/pkg/vtiger/translations/French/modules/ProjectTask.php index fea77870c..5162a4896 100644 --- a/pkg/vtiger/translations/French/modules/ProjectTask.php +++ b/pkg/vtiger/translations/French/modules/ProjectTask.php @@ -43,6 +43,6 @@ $languageStrings = array( 'Canceled' => "Annulé", 'LBL_NO_DATE_VALUE_MSG' => 'ou tâches de projet ne ont pas de début et / ou Date de fin', - 'Canceled ' => 'Annulé', + 'Canceled' => 'Annulé', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/Hungarian/modules/ProjectTask.php b/pkg/vtiger/translations/Hungarian/modules/ProjectTask.php index 9b0f75a81..9aa910bb0 100644 --- a/pkg/vtiger/translations/Hungarian/modules/ProjectTask.php +++ b/pkg/vtiger/translations/Hungarian/modules/ProjectTask.php @@ -42,6 +42,6 @@ $languageStrings = array( 'In Progress' => 'In Progress', 'Completed' => 'Completed', 'Deferred' => 'Deferred', - 'Canceled ' => 'Canceled', + 'Canceled' => 'Canceled', 'LBL_NO_DATE_VALUE_MSG' => 'vagy Projektfeladatok nincs kezdete és / vagy vége dátum', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/ItalianLanguagePack_it_it/modules/ProjectTask.php b/pkg/vtiger/translations/ItalianLanguagePack_it_it/modules/ProjectTask.php index d98e6039f..5485b64e2 100644 --- a/pkg/vtiger/translations/ItalianLanguagePack_it_it/modules/ProjectTask.php +++ b/pkg/vtiger/translations/ItalianLanguagePack_it_it/modules/ProjectTask.php @@ -43,6 +43,6 @@ $languageStrings = array( 'Canceled' => "Cancellato", 'LBL_NO_DATE_VALUE_MSG' => 'o Attività del Progetto non hanno Data di Inizio e/o Fine', - 'Canceled ' => 'Annullata', + 'Canceled' => 'Annullata', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/MexicanSpanishLanguagePack_es_mx/modules/ProjectTask.php b/pkg/vtiger/translations/MexicanSpanishLanguagePack_es_mx/modules/ProjectTask.php index 255295f1c..5070a77ad 100644 --- a/pkg/vtiger/translations/MexicanSpanishLanguagePack_es_mx/modules/ProjectTask.php +++ b/pkg/vtiger/translations/MexicanSpanishLanguagePack_es_mx/modules/ProjectTask.php @@ -41,7 +41,7 @@ $languageStrings = array( 'Open' => 'Abierta', 'In Progress' => 'En progreso', 'Deferred' => 'Diferida', - 'Canceled ' => 'Cancelada', + 'Canceled' => 'Cancelada', 'Completed' => 'Terminada', 'LBL_NO_DATE_VALUE_MSG' => 'Las tareas del proyecto no tienen fecha de inicio ni / o de término', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/PolishLanguagePack_pl_pl/modules/ProjectTask.php b/pkg/vtiger/translations/PolishLanguagePack_pl_pl/modules/ProjectTask.php index 65c22a1a1..01f310e82 100644 --- a/pkg/vtiger/translations/PolishLanguagePack_pl_pl/modules/ProjectTask.php +++ b/pkg/vtiger/translations/PolishLanguagePack_pl_pl/modules/ProjectTask.php @@ -46,6 +46,6 @@ $languageStrings = array( 'In Progress' => 'W toku', 'Completed' => 'ZakoÅ„czony', 'Deferred' => 'Odroczona', - 'Canceled ' => 'OdwoÅ‚any', + 'Canceled' => 'OdwoÅ‚any', 'LBL_NO_DATE_VALUE_MSG' => 'lub Zadania projektowe nie majÄ… rozpoczÄ™cia i / lub zakoÅ„czenia Data', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/RomanianLanguagePack_rm_rm/modules/ProjectTask.php b/pkg/vtiger/translations/RomanianLanguagePack_rm_rm/modules/ProjectTask.php index 4c411107c..b14a827fc 100644 --- a/pkg/vtiger/translations/RomanianLanguagePack_rm_rm/modules/ProjectTask.php +++ b/pkg/vtiger/translations/RomanianLanguagePack_rm_rm/modules/ProjectTask.php @@ -43,6 +43,6 @@ $languageStrings = array( 'Canceled' => "Anulat", 'LBL_NO_DATE_VALUE_MSG' => 'sau sarcini de proiect nu au Start È™i / sau Data de încheiere', - 'Canceled ' => 'Anulat', + 'Canceled' => 'Anulat', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/Russian/modules/ProjectTask.php b/pkg/vtiger/translations/Russian/modules/ProjectTask.php index eb9e36761..aa17be0fc 100644 --- a/pkg/vtiger/translations/Russian/modules/ProjectTask.php +++ b/pkg/vtiger/translations/Russian/modules/ProjectTask.php @@ -43,6 +43,6 @@ $languageStrings = array( 'Canceled' => "Отменен", 'LBL_NO_DATE_VALUE_MSG' => 'или Задачи проекта не имеют начала и / или окончаниÑ', - 'Canceled ' => 'Отменен', + 'Canceled' => 'Отменен', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/Spanish/modules/ProjectTask.php b/pkg/vtiger/translations/Spanish/modules/ProjectTask.php index c97a50b5d..28c6793e6 100644 --- a/pkg/vtiger/translations/Spanish/modules/ProjectTask.php +++ b/pkg/vtiger/translations/Spanish/modules/ProjectTask.php @@ -50,6 +50,6 @@ $languageStrings = array( 'In Progress' => 'In Progress', 'Completed' => 'Completed', 'Deferred' => 'Deferred', - 'Canceled ' => 'Canceled', + 'Cancele' => 'Canceled', 'LBL_NO_DATE_VALUE_MSG' => 'o Tareas del proyecto no tienen inicio y / o fecha de finalización', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/Sweden_sv_se/modules/ProjectTask.php b/pkg/vtiger/translations/Sweden_sv_se/modules/ProjectTask.php index 9b7c92ff0..69811f62d 100755 --- a/pkg/vtiger/translations/Sweden_sv_se/modules/ProjectTask.php +++ b/pkg/vtiger/translations/Sweden_sv_se/modules/ProjectTask.php @@ -45,6 +45,6 @@ $languageStrings = array( 'In Progress' => 'In Progress', 'Completed' => 'Avslutat', 'Deferred' => 'Deferred', - 'Canceled ' => 'Canceled', + 'Canceled' => 'Canceled', 'LBL_NO_DATE_VALUE_MSG' => 'eller projektuppgifter inte har start och / eller slutdatum', ); \ No newline at end of file diff --git a/pkg/vtiger/translations/TurkishLanguagePack_tr_tr/modules/ProjectTask.php b/pkg/vtiger/translations/TurkishLanguagePack_tr_tr/modules/ProjectTask.php index e316ddb32..f5fd0b2d0 100644 --- a/pkg/vtiger/translations/TurkishLanguagePack_tr_tr/modules/ProjectTask.php +++ b/pkg/vtiger/translations/TurkishLanguagePack_tr_tr/modules/ProjectTask.php @@ -43,6 +43,6 @@ $languageStrings = array( 'Canceled' => "Iptal edildi", 'LBL_NO_DATE_VALUE_MSG' => 'veya Proje Görevleri BaÅŸlat ve / veya BitiÅŸ Tarihi yok', - 'Canceled ' => 'Ä°ptal', + 'Canceled' => 'Ä°ptal', ); \ No newline at end of file -- GitLab