1
0

Fixed Quantity parent list display for new/edit forms

This commit is contained in:
cryptogopher
2019-11-27 16:20:53 +01:00
parent 6433621fa7
commit 6e335c243a
6 changed files with 20 additions and 16 deletions

View File

@@ -11,9 +11,8 @@ module QuantitiesHelper
end
def parent_options(domain)
options = nested_set_options(@quantities.send(domain), @quantity) do |i|
options = nested_set_options(@project.quantities.send(domain), @quantity) do |i|
raw("#{' ' * i.level}#{i.name}")
end
options.unshift([t('.null_parent'), nil])
end
end