'fix'
This commit is contained in:
parent
e74d54ad75
commit
9c8f032e1c
|
@ -715,7 +715,7 @@ class AnnouncementsController < ApplicationController
|
||||||
"show_comment_flag" => '',
|
"show_comment_flag" => '',
|
||||||
"impressionist" => nil,
|
"impressionist" => nil,
|
||||||
"url_to_edit"=> '',
|
"url_to_edit"=> '',
|
||||||
"external_link" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
|
"redirect_to" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -811,7 +811,7 @@ class AnnouncementsController < ApplicationController
|
||||||
"show_comment_flag" => show_comment_flag,
|
"show_comment_flag" => show_comment_flag,
|
||||||
"impressionist" => (announcement.is_preview ? nil : announcement),
|
"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)
|
"redirect_to" => (announcement.is_external_link && !announcement.external_link.blank? ? announcement.external_link : nil)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue