5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 12:16:21 +00:00

fix: no enviar valores inversos vacíos

This commit is contained in:
f 2024-10-21 16:42:28 -03:00
parent f60c67eaa8
commit 256a8b1da0
No known key found for this signature in database

View file

@ -59,7 +59,8 @@
= render 'posts/attributes', site: site, post: post, dir: dir, base: base, locale: locale, except: except
-# @todo Volver obligatorios?
- except.each do |attr|
%input{ type: 'hidden', name: "#{base}[#{attr}]", value: pluck_param(attr, optional: true) }
- if (value = pluck_param(attr, optional: true))
= hidden_field_tag "#{base}[#{attr}]", value
- content_for :"#{modal_id}_footer" do
-# = render 'posts/validation', site: site, invalid: { id: invalid_id }, submitting: { id: submitting_id }