Project

General

Profile

« Previous | Next » 

Revision ea740cfe

Added by Ori Rabin about 8 years ago

Fixes #14183 - showing whitespace validation in smart variables

View differences:

app/models/lookup_keys/lookup_key.rb
end
def to_param
Parameterizable.parameterize("#{id}-#{key}")
# to_param is used in views to create a link to the lookup_key.
# If the key has whitespace in it the link will break so this replaced the whitespace.
search_key = key.tr(' ','_') unless key.nil?
Parameterizable.parameterize("#{id}-#{search_key}")
end
def to_s

Also available in: Unified diff