Opened 16 years ago
Closed 15 years ago
#11683 closed (duplicate)
response_add assumes DEFAULT_CONTENT_TYPE is text/html for dismissAddAnotherPopup
Description ¶
When creating an object via a pop-up, response_add() returns a short snippet of JavaScript to call dismissAddAnotherPopup. This works if DEFAULT_CONTENT_TYPE is "text/html", but will fail if a project sets the default content-type to "application/xhtml+xml". There are two possible fixes to this problem: change the code to return a full XHTML document or set the content-type to "text/html" on this HttpResponse. The attached patch takes the latter approach.
Change History (5)
by , 16 years ago
Attachment: | 11683-response_add-dismissAddAnotherPopup-mimetype.diff added |
---|
comment:1 by , 16 years ago
comment:2 by , 15 years ago
milestone: | → 1.2 |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 15 years ago
milestone: | 1.2 |
---|
This is part of the larger issue of dealing with varying output formats, and so is probably best dealt with in a general fashion by a future release, rather than piecemeal in 1.2.
comment:4 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
I'm closing this as a duplicate of #5704
See also #11684