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

Co-authored-by: Selase Krakani <[email protected]>
This commit is contained in:
Adam Skalicky
2025-01-22 22:44:49 +01:00
committed by GitHub
co-authored by Selase Krakani
parent c9e99ebd38
commit 236efe9ecf
+1 -1
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