Closed (fixed)
Project:
Storm
Version:
6.x-1.x-dev
Component:
Storm Ticket
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Oct 2008 at 21:42 UTC
Updated:
8 Jun 2009 at 23:20 UTC
When a ticket is being viewed, it only shows the following fields:
Organization :
Project :
Task :
I'd like to be able to see this fields, without having to click edit or viewing it on the ticket summary page:
Category:
Status:
Priority:
Comments
Comment #1
jorditr commentedHi nektir, I've customized my stormticket_view() function with:
It's working properly on my site, with drupal 5 but I'm almost sure you can substitute it on the drupal 6 version of storm. In any case, make a backup of your module before trying that upgrade, I don't think you could loose anything or break things down, but I prefer not being responsible of any damage ;-)
Comment #2
KrisBulman commentedhas anyone tried this in 6?
Comment #3
samuelet commentedIn 6.x it's a little different from #1.
Add this code before the "return $node;" statement inside the theme_stormticket_view function in modules/storm/stormticket/stormticket.theme.inc file:
"storm_status" in place of "status" class because last one is used for drupal messages.
Comment #4
samuelet commentedI'm trying to use the http://drupal.org/node/173880#function-override system to avoid rewriting the modules/storm/stormticket/stormticket.theme.inc file, but it does not work. Was anyone able to?
This is my template.php overriding function:
Comment #5
samuelet commentedI was wrong, overriding theme works. I needed only to purge drupal cache after template.php modification.
Comment #6
jorditr commented:-)
Comment #7
hillaryneaf commentedThank you samuelet this is a great alternative until it is added to the module!
Comment #8
samuelet commentedGlad that it was useful.
As bonus info, i post the theme overriding for showing, in the ticket overview page, a CCK field associated to the ticket.
In my example, i use the "Open by" field to track who opens the ticket (and optionally send him a mail with workflow).
Change the "garland" with your own theme, and "field_open_by" with the your CCk name (it's displayed in "type content"->ticket->"manage fields").
It works on 6.x, don't know 5.x
Comment #9
KrisBulman commentedroberto, can this be added to dev?
Comment #10
Magnity commentedIt definitely makes sense to me to show more information on the view ticket page. I will look at implementing this.
However I wonder whether anyone uses the fact that these aren't displayed as a pseudo field permissions filter? IE those people who have permission to edit can see these additional fields - others can't. For that reason, i'd add category, status and priority but would leave out pricing information which could more private, just as this issue suggests.
Comment #11
Magnity commentedCommitted. Will roll into -dev at midnight and 1.23 when released.
http://drupal.org/cvs?commit=216438