From d7ac57f1e508aa9c53559d7d952d63b862f708a8 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 13 Feb 2022 23:25:30 -0600 Subject: [PATCH] artists: sort URLs in edit form. --- app/views/artists/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/artists/_form.html.erb b/app/views/artists/_form.html.erb index 8a1309627..db7bca19e 100644 --- a/app/views/artists/_form.html.erb +++ b/app/views/artists/_form.html.erb @@ -3,7 +3,7 @@ <%= f.input :other_names_string, label: "Other names", as: :string, hint: "Separate names with spaces, not commas. Use underscores for spaces inside names." %> <%= f.input :group_name %> - <%= f.input :url_string, label: "URLs", as: :text, input_html: { value: params.dig(:artist, :url_string) || @artist.urls.join("\n")}, hint: "You can prefix a URL with - to mark it as dead." %> + <%= f.input :url_string, label: "URLs", as: :text, input_html: { value: params.dig(:artist, :url_string) || @artist.sorted_urls.join("\n")}, hint: "You can prefix a URL with - to mark it as dead." %> <% if @artist.tag&.artist? && @artist.wiki_page.present? %>