Skip to content

Commit 5c1a047

Browse files
committed
Remove newlines from result message
Newlines can cause trouble with translations as well as presentation in the UI. This particular string doesn't actually need the newlines, so this commit changes it to just not have them. Alternative to ManageIQ/manageiq#23213
1 parent d612e03 commit 5c1a047

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/controllers/miq_ae_tools_controller.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,7 @@ def upload
286286
if params[:upload] && params[:upload][:datastore].present?
287287
begin
288288
MiqAeDatastore.upload(params[:upload][:datastore])
289-
flash_to_session(_("Datastore import was successful.
290-
Namespaces updated/added: %{namespace_stats}
291-
Classes updated/added: %{class_stats}
292-
Instances updated/added: %{instance_stats}
293-
Methods updated/added: %{method_stats}") % stat_options)
289+
flash_to_session(_("Datastore import was successful. Added/Updated %{namespace_stats} Namespaces, %{class_stats} Classes, %{instance_stats} Instances, %{method_stats} Methods.") % stat_options)
294290
redirect_to(:action => 'import_export')
295291
rescue StandardError => bang
296292
flash_to_session(_("Error during 'upload': %{message}") % {:message => bang.message}, :error)

0 commit comments

Comments
 (0)