Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsanggds committed Dec 11, 2023
1 parent 699e240 commit 65bd80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/ckan/v26/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def get(key)
def get_extra(key, max_length = 0)
@extras ||= hashify(@package["extras"] || [])
if max_length.positive? && @extras[key].present?
@extras[key].truncate(max_length)
@extras[key][0, max_length]
else
@extras[key]
end
Expand Down

0 comments on commit 65bd80a

Please sign in to comment.