Skip to content
Snippets Groups Projects
Commit 51c8005b authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Sebastian Pongratz
Browse files

[Projekt: xRM-Sales][TicketNr.: 2003060][Tippfehler in Benachrichtigung aus...

parent 3df4189d
No related branches found
No related tags found
No related merge requests found
...@@ -53,12 +53,14 @@ if(planningIds.length > 0) ...@@ -53,12 +53,14 @@ if(planningIds.length > 0)
} }
var notUpdatedRecordsLength = (planningObj.length - planningIds.length); var notUpdatedRecordsLength = (planningObj.length - planningIds.length);
var descriptionText = "%0 out of %1 records were changed to \"%2\".\n %3 record/s could not be updated.";
var captionStatus = translate.withArguments("%0 status was/were changed", [planningIds.length]); var captionStatus = translate.withArguments("%0 status was/were changed", [planningIds.length]);
var captionResponsible = translate.withArguments("%0 responsilbe/s was/were changed", [planningIds.length]); var captionResponsible = translate.withArguments("%0 responsilbe/s was/were changed", [planningIds.length]);
var descriptionStatus = translate.withArguments(descriptionText, [planningIds.length, planningObj.length, KeywordUtils.getViewValue($KeywordRegistry.forecastStatus(), status), notUpdatedRecordsLength]); //Don't assign the descriptionText to a variable, even though it's the exact samee one twice: otherwhise the key might get removed from the translation table, since the reference can not be found
var descriptionResponsible = translate.withArguments(descriptionText, [planningIds.length, planningObj.length, ContactUtils.getFullTitleByContactId(responsible), notUpdatedRecordsLength]); var descriptionStatus = translate.withArguments("%0 out of %1 records were changed to \"%2\".\n %3 record/s could not be updated."
, [planningIds.length, planningObj.length, KeywordUtils.getViewValue($KeywordRegistry.forecastStatus(), status), notUpdatedRecordsLength]);
var descriptionResponsible = translate.withArguments("%0 out of %1 records were changed to \"%2\".\n %3 record/s could not be updated."
, [planningIds.length, planningObj.length, ContactUtils.getFullTitleByContactId(responsible), notUpdatedRecordsLength]);
var notificationConfig = notification.createConfig() var notificationConfig = notification.createConfig()
.addUserWithId(EmployeeUtils.getCurrentUserId()) .addUserWithId(EmployeeUtils.getCurrentUserId())
......
...@@ -921,6 +921,10 @@ ...@@ -921,6 +921,10 @@
<key>Attribute groups can't be selected</key> <key>Attribute groups can't be selected</key>
<value>Eigenschaftsgruppen können nicht verwendet werden</value> <value>Eigenschaftsgruppen können nicht verwendet werden</value>
</entry> </entry>
<entry>
<key>%0 out of %1 records were changed to \"%2\".\n %3 record/s could not be updated.</key>
<value>%0 von %1 Datensätze wurden auf \"%2\" geändert.\n %3 Datensätze konnten nicht aktualisiert werden.</value>
</entry>
<entry> <entry>
<key>My Contacts</key> <key>My Contacts</key>
<value>Meine Kontakte</value> <value>Meine Kontakte</value>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment