Commit 9b2cac109d7587d123cfed56daaca50d1ef59120

Authored by Andrey Karpikov
1 parent ef0f61f9

check checked

... ... @@ -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
... ...
1 1 module Kanjai
2   - VERSION = "0.0.276"
  2 + VERSION = "0.0.277"
3 3 end
... ...