Ticket #476 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Force setting of document (MIME) type when using New->Perl 5 test (and maybe others)

Reported by: Sewi Owned by:
Priority: major Milestone:
Component: editor Version: trunk
Keywords: Cc: karl.forner@…

Description

When using the "New..." menu and a predefined template, the (MIME) type of the document is not set.

An error "No module mime_type='CODE(0xref)' filename=" is issued on STDERR

Attachments

mimetype.patch (727 bytes) - added by karl.forner 5 years ago.
patch
mimetype2.patch (657 bytes) - added by karl.forner 5 years ago.
new patch

Change History

Changed 5 years ago by karl.forner

patch

comment:1 Changed 5 years ago by karl.forner

  • Cc karl.forner@… added
  • Status changed from new to closed
  • Resolution set to fixed

I believe I fixed the bug.
The value of the mime-type for perl extensions was set to the reference of the "constant" function rather than to its return ( \&f instead of f() ).

comment:2 Changed 5 years ago by karl.forner

  • Status changed from closed to reopened
  • Resolution fixed deleted

Changed 5 years ago by karl.forner

new patch

comment:3 Changed 5 years ago by karl.forner

  • Status changed from reopened to closed
  • Resolution set to fixed

Previous patch was adressing the problem in a wrong way.
This new patch should really fix it in a proper way.

Note: See TracTickets for help on using tickets.