[Sets] Fix double punctuation in update notice

This commit is contained in:
Earlopain 2022-01-05 12:05:05 +01:00
parent b049eb9024
commit bb032f605c
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897

View File

@ -50,7 +50,7 @@ class PostSetsController < ApplicationController
@post_set = PostSet.find(params[:id])
check_edit_access(@post_set)
@post_set.update(set_params)
flash[:notice] = @post_set.valid? ? 'Set updated.' : @post_set.errors.full_messages.join('; ')
flash[:notice] = @post_set.valid? ? 'Set updated' : @post_set.errors.full_messages.join('; ')
if CurrentUser.is_admin? && !@post_set.is_owner?(CurrentUser.user)
if @post_set.saved_change_to_is_public?