diff --git a/app/models/concerns/metadata/unused_values_concern.rb b/app/models/concerns/metadata/unused_values_concern.rb index 79cdbe65..a6f8aa54 100644 --- a/app/models/concerns/metadata/unused_values_concern.rb +++ b/app/models/concerns/metadata/unused_values_concern.rb @@ -19,8 +19,10 @@ module Metadata disabled = false + # El campo está deshabilitado si está completo y no incluye el + # post actual. if inverse? - disabled = p[inverse].empty? || ![p[inverse].value].flatten.include?(post.uuid.value) + disabled = p[inverse].present? && ![p[inverse].value].flatten.include?(post.uuid.value) end [title(p), p.uuid.value, disabled]