When uploading description, the description is set to the contents field
Bug #178750 reported by
JW
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Chameleon (inactive) |
Fix Released
|
Medium
|
JW |
Bug Description
When uploading a description in the Admin Panel, the description won't be what was uploaded, instead it will be the contents of the entry.
Changed in chameleon: | |
milestone: | 0.6.2 → 0.6.1.2 |
Changed in chameleon: | |
milestone: | 0.6.1.2 → 0.6.2 |
Changed in chameleon: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is caused by a bug in app/controllers /admin/ entries_ controller. rb. Lines 96-106: on.size != 0 on.content_ type and
!entry_ description. content_ type.split( "/")[1] .empty? on.content_ type.split( "/")[1] .strip open(RAILS_ ROOT + "/public/" + path, "wb") do |file|
file.write( entry_descripti on.read( )) entry.contents = path
if entry_description and entry_descripti
path = "entries/" + @entry.id.to_s + ".description"
if entry_descripti
path += "." + entry_descripti
end
File.
end
@
end
Line 105 should be entry.descripti on = path
@