Opened 9 years ago

Closed 7 years ago

No date picker with SimpleTicketPlugin

Reported by: Owned by: Matthew.Carlson@… coderanger normal DateFieldPlugin trivial 0.10

Description

Very, very minor issue. Simple Ticket page does not display the calendar date picker when DateFieldPlugin is used in conjunction with the SimpleTicketPlugin.

Thanks for the plugin, our Help Desk will find it very useful for setting deadlines on tickets.

comment:1 in reply to: ↑ description Changed 9 years ago by anonymous

When will a fix for this problem be available? In 0.11?

Very, very minor issue. Simple Ticket page does not display the calendar date picker when DateFieldPlugin is used in conjunction with the SimpleTicketPlugin.

Thanks for the plugin, our Help Desk will find it very useful for setting deadlines on tickets.

comment:2 in reply to: ↑ description ; follow-up: ↓ 3 Changed 8 years ago by didoux

I didn't try, but I think that modifying the filter.py can do the trick:

[...]
def post_process_request(self, req, template, content_type):
if req.path_info.startswith('/newticket') or req.path_info.startswith('/ticket'):


[...]
def post_process_request(self, req, template, content_type):
if req.path_info.startswith('/newticket') or req.path_info.startswith('/ticket') or req.path_info.startswith('/simpleticket'):
[...]


comment:3 in reply to: ↑ 2 Changed 8 years ago by anonymous

I didn't try, but I think that modifying the filter.py can do the trick:

...

Thank you for your help! That worked great. Of course, it was a bit more complicated because our /simpleticket page is also the default page for that environment. I ended up changing that line to:

[...]
def post_process_request(self, req, template, content_type):
if req.path_info.startswith('/newticket') or req.path_info.startswith('/ticket') or req.path_info.startswith('/simpleticket') or req.path_info == "/" or req.path_info == "":
[...]


I'm not sure how much of that should make it into the plugin, but it would probably make sense to add req.path_info.startswith('/simpleticket') because a page with that name would almost always be created by SimpleTicketPlugin.

comment:4 Changed 8 years ago by anonymous

I think there is the same problem with the HideValsPlugin and I am not sure how to fix exactly.

comment:5 Changed 7 years ago by doki_pen

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