fix error
This commit is contained in:
parent
18c2254bb9
commit
e74d54ad75
|
@ -714,7 +714,8 @@ class AnnouncementsController < ApplicationController
|
|||
"comments" => [],
|
||||
"show_comment_flag" => '',
|
||||
"impressionist" => nil,
|
||||
"url_to_edit"=> ''
|
||||
"url_to_edit"=> '',
|
||||
"external_link" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -809,7 +810,8 @@ class AnnouncementsController < ApplicationController
|
|||
"comments" => announcement.comments,
|
||||
"show_comment_flag" => show_comment_flag,
|
||||
"impressionist" => (announcement.is_preview ? nil : announcement),
|
||||
"url_to_edit"=>url_to_edit
|
||||
"url_to_edit"=>url_to_edit,
|
||||
"external_link" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue