From 072662cab8c05b92044356a908ab3d0a5b2443b4 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 27 Mar 2021 17:18:09 -0300 Subject: [PATCH] siempre mandar un array en data-keys closes #887 closes #886 closes #885 closes #884 closes #877 closes #876 closes #871 closes #867 closes #865 --- app/controllers/posts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 6f84c911..a4b47a16 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -167,6 +167,6 @@ class PostsController < ApplicationController # Instruye al editor a olvidarse el contenido del artículo. Usar # cuando hayamos guardado la información correctamente. def forget_content - flash[:js] = { target: 'editor', action: 'forget-content', keys: params[:storage_keys].to_json } + flash[:js] = { target: 'editor', action: 'forget-content', keys: (params[:storage_keys] || []).to_json } end end