Showing
2 changed files
with
4 additions
and
2 deletions
| ... | ... | @@ -320,12 +320,14 @@ module Kanjai |
| 320 | 320 | def self.replace_attributes_marker(attributes, hash_value) |
| 321 | 321 | |
| 322 | 322 | new_attributes = attributes.deep_dup |
| 323 | + if new_attributes.keys.include?(:checked) | |
| 324 | + new_attributes['make-checked'] = new_attributes.delete(:checked) | |
| 325 | + end | |
| 323 | 326 | |
| 324 | 327 | attributes.each do |key, text| |
| 325 | 328 | if !hash_value.nil? and !text.nil? |
| 326 | 329 | hash_value.each do |key2, value2| |
| 327 | 330 | if !key2.nil? and !value2.nil? |
| 328 | - key = 'make-checked' if key == 'checked' | |
| 329 | 331 | new_attributes[key].gsub!(key2, value2) |
| 330 | 332 | new_attributes[key].gsub!('###FORM_ACTION###', "/#{I18n.locale}/form/#{@page_content_id}") |
| 331 | 333 | end | ... | ... |