mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-28 14:36:22 +00:00
fix: no enviar valores inversos vacíos
This commit is contained in:
parent
f60c67eaa8
commit
256a8b1da0
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@
|
||||||
= render 'posts/attributes', site: site, post: post, dir: dir, base: base, locale: locale, except: except
|
= render 'posts/attributes', site: site, post: post, dir: dir, base: base, locale: locale, except: except
|
||||||
-# @todo Volver obligatorios?
|
-# @todo Volver obligatorios?
|
||||||
- except.each do |attr|
|
- 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
|
- content_for :"#{modal_id}_footer" do
|
||||||
-# = render 'posts/validation', site: site, invalid: { id: invalid_id }, submitting: { id: submitting_id }
|
-# = render 'posts/validation', site: site, invalid: { id: invalid_id }, submitting: { id: submitting_id }
|
||||||
|
|
Loading…
Reference in a new issue