Opened 8 years ago

Last modified 6 months ago

#7454 new enhancement

Patch to get BlackMagic working with Agilo

Reported by: Andy Baker Owned by: obs
Priority: lowest Component: BlackMagicTicketTweaksPlugin
Severity: trivial Keywords:
Cc: Andy Baker Trac Release: 0.11


Not sure if this something you'd be interested in, but here's a quick'n'dirty patch (against 0.11) so that BlackMagic works with Agilo.

Index: blackmagic/
--- blackmagic/	(revision 8334)
+++ blackmagic/	(working copy)
@@ -100,7 +100,7 @@
         #reset blocked tickets to 0
         self.blockedTickets = 0
         #ticket page
-        if template == "ticket.html":
+        if template == "ticket.html" or template == "agilo_ticket_new.html" or template == "agilo_ticket_edit.html" :
             #remove ticket types user doesn't have permission to
             fields = data.get("fields")
             i = 0
@@ -260,7 +260,7 @@
         if filename == "query.html":
             stream |= Transformer('//div[@class="query"]/h1/span[@class="numrows"]/text()').replace("")
-        if filename == "ticket.html":
+        if filename == "ticket.html" or filename == "agilo_ticket_new.html" or filename == "agilo_ticket_edit.html" :
             for field,e in self.enchants.items():
                 disabled = e["disable"]
                 hidden = e["hide"]

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by NETAVIS Software <ck5@…>

Thank you very much ... it helped us a lot!!!!

comment:2 Changed 3 years ago by anonymous

you forgot agilo_ticket_view.html.

Last edited 3 years ago by Ryan J Ollos (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain obs.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.