Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix - Personas y Organizaciones - Aviso en acción masiva de envío de correo #418

Merged
merged 10 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions custom/Extension/application/Ext/Language/ca_ES.SticLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
$app_strings['LBL_STIC_VIDEOS_LINK'] = 'Vídeos de SinergiaCRM';
$app_strings['LBL_STIC_SINERGIADA'] = 'SinergiaDA';

// Enviament massiu emails
$app_strings['LBL_ONLY_CURRENT_PAGE'] = "Només s'empraran els registres de plana actual. Si vols enviar a tota la llista, has d'utilitzar el mòdul de Campanyes";

// Mòduls propis de SinergiaCRM i mòduls de SuiteCRM reanomenats
$app_list_strings['moduleList']['Accounts'] = 'Organitzacions';
$app_list_strings['moduleList']['Contacts'] = 'Persones';
Expand Down
3 changes: 3 additions & 0 deletions custom/Extension/application/Ext/Language/en_us.SticLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
$app_strings['LBL_STIC_VIDEOS_LINK'] = 'SinergiaCRM videos';
$app_strings['LBL_STIC_SINERGIADA'] = 'SinergiaDA';

// Enviament massiu emails
$app_strings['LBL_ONLY_CURRENT_PAGE'] = "Only records on current page will be used. If you want to send to the entire list, you should use the Campaigns module";

// SinergiaCRM own modules and SuiteCRM renamed modules
$app_list_strings['moduleList']['Accounts'] = 'Accounts';
$app_list_strings['moduleList']['Contacts'] = 'Contacts';
Expand Down
3 changes: 3 additions & 0 deletions custom/Extension/application/Ext/Language/es_ES.SticLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
$app_strings['LBL_STIC_VIDEOS_LINK'] = 'Vídeos de SinergiaCRM';
$app_strings['LBL_STIC_SINERGIADA'] = 'SinergiaDA';

// Enviament massiu emails
$app_strings['LBL_ONLY_CURRENT_PAGE'] = "Sólo se utilizarán los registros de la página actual. Si quieres enviar a toda la lista, debes usar el módulo de Campañas";

// Módulos propios de SinergiaCRM y módulos de SuiteCRM renombrados
$app_list_strings['moduleList']['Accounts'] = 'Organizaciones';
$app_list_strings['moduleList']['Contacts'] = 'Personas';
Expand Down
3 changes: 3 additions & 0 deletions custom/Extension/application/Ext/Language/gl_ES.SticLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
$app_strings['LBL_STIC_VIDEOS_LINK'] = 'Vídeos de SinergiaCRM';
$app_strings['LBL_STIC_SINERGIADA'] = 'SinergiaDA';

// Enviament massiu emails
$app_strings['LBL_ONLY_CURRENT_PAGE'] = "Sólo se utilizarán los registros de la página actual. Si quieres enviar a toda la lista, debes usar el módulo de Campañas";

// Módulos propios de SinergiaCRM e módulos de SuiteCRM renombrados
$app_list_strings['moduleList']['Accounts'] = 'Organizacións';
$app_list_strings['moduleList']['Contacts'] = 'Persoas';
Expand Down
3 changes: 2 additions & 1 deletion include/javascript/EmailsComposeViewModal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions jssource/src_files/include/javascript/EmailsComposeViewModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,16 @@

$.fn.openComposeViewModal = function (source) {
"use strict";

window.event.preventDefault();
window.event.stopImmediatePropagation();

// STIC-Custom 20241003 EPS - Warning when entire list selected
// https://github.com/SinergiaTIC/SinergiaCRM/pull/418
if($("[name='select_entire_list']").val() == 1) {
alert(SUGAR.language.get('app_strings', 'LBL_ONLY_CURRENT_PAGE'));
}
// END STIC-Custom

var self = this;
self.emailComposeView = null;
var opts = $.extend({}, $.fn.EmailsComposeViewModal.defaults);
Expand Down
Loading