Project

General

Profile

« Previous | Next » 

Revision 00804233

Added by Ohad Levy about 8 years ago

fixes #14511 - bookmark editing ensures the query field is populated

View differences:

app/views/bookmarks/_form.html.erb
<%= form_for @bookmark, :url => (@bookmark.new_record? ? bookmarks_path : bookmark_path(:id => @bookmark)) do |f| %>
<%= base_errors_for @bookmark %>
<%= text_f f, :name %>
<%= textarea_f f, :query, :value => params[:query], :size => "col-md-8" , :rows=> '3' %>
<%= textarea_f f, :query, :size => "col-md-8" , :rows=> '3' %>
<%= checkbox_f(f, :public, :checked => true) %>
<%= f.hidden_field :controller %>
<%= submit_or_cancel f %>

Also available in: Unified diff