mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 13:36:23 +00:00
fix: cambiar el valor una sola vez
This commit is contained in:
parent
0e010e804c
commit
9fb3601d92
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
|
||||||
# once => el campo solo se puede modificar si estaba vacío
|
# once => el campo solo se puede modificar si estaba vacío
|
||||||
def writable?
|
def writable?
|
||||||
case layout.metadata.dig(name, 'writable')
|
case layout.metadata.dig(name, 'writable')
|
||||||
when 'once' then value.blank?
|
when 'once' then value_was.blank?
|
||||||
else true
|
else true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue