mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 11:56:21 +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
|
||||
def writable?
|
||||
case layout.metadata.dig(name, 'writable')
|
||||
when 'once' then value.blank?
|
||||
when 'once' then value_was.blank?
|
||||
else true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue