mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 06:41:42 +00:00
los valores de los sub atributos tambien son unicos #51
This commit is contained in:
parent
e1d7abd254
commit
55f5797a54
1 changed files with 1 additions and 2 deletions
|
@ -268,6 +268,7 @@ class Post
|
|||
post.site.everything_of(attr, lang: collection)
|
||||
.compact
|
||||
.map { |sv| sv[subattr] }
|
||||
.flatten
|
||||
.uniq
|
||||
else
|
||||
post.site.everything_of(attr, lang: collection).compact
|
||||
|
@ -290,8 +291,6 @@ class Post
|
|||
end
|
||||
end
|
||||
|
||||
binding.pry if _value.last.nil?
|
||||
|
||||
# Crea un array de arrays, útil para los select
|
||||
# [ [ 1, a ], [ 2, b ] ]
|
||||
# aunque si no hay un : en el autocompletado, el array queda
|
||||
|
|
Loading…
Reference in a new issue