Fix @mention autocomplete for comments & forum posts.
Fix comment autocomplete (broken in 1257639). Also fix forum post
autocomplete (didn't work when editing forum posts).
This commit is contained in:
@@ -127,6 +127,7 @@ module ApplicationHelper
|
||||
options[:input_name] ||= "#{object}[#{name}]"
|
||||
options[:value] ||= instance_variable_get("@#{object}").try(name)
|
||||
options[:preview_id] ||= "dtext-preview"
|
||||
options[:classes] ||= ""
|
||||
|
||||
render "dtext/form", options
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user