Modify

Opened 4 years ago

Last modified 4 years ago

#7454 new enhancement

Patch to get BlackMagic working with Agilo

Reported by: bungybun@… Owned by: obs
Priority: lowest Component: BlackMagicTicketTweaksPlugin
Severity: trivial Keywords:
Cc: bungybun@… Trac Release: 0.11

Description

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.py
===================================================================
--- blackmagic/blackmagic.py	(revision 8334)
+++ blackmagic/blackmagic.py	(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 (1)

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

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

Add Comment

Modify Ticket

Action
as new The owner will remain obs.
Author


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

 
Note: See TracTickets for help on using tickets.