FIX: Prevent frozen string error in import scripts (#30325)

Co-authored-by: Selase Krakani <849886+s3lase@users.noreply.github.com>
This commit is contained in:
Adam Skalicky
2025-01-22 13:44:49 -08:00
committed by GitHub
parent eb041085bc
commit 6053dc8aa6

View File

@ -444,7 +444,7 @@ class ImportScripts::Base
else
# Basic massaging on the category name
params[:name] = "Blank" if params[:name].blank?
params[:name].strip!
params[:name] = params[:name].strip
params[:name] = params[:name][0..49]
# make sure categories don't go more than 2 levels deep