PDA

View Full Version : Move to Drop Down


zadunn
06-19-2008, 05:36 PM
Is there anyway to remove the 'Inboxes' from the drop down. Ideally I never want someone blindly moving something to a Group. If they are moving it 99.99% of the time it should go to a bucket. What do I need to comment out to make this happen? Or is it a larger change than that? Thanks!

Hildy
06-19-2008, 11:08 PM
cerb4/plugins/cerberusweb.core/templates/tickets/ticket_view.tpl.php, line 237 for the main display option.

Any others you want?

zadunn
06-20-2008, 03:07 PM
cerb4/plugins/cerberusweb.core/templates/tickets/ticket_view.tpl.php, line 237 for the main display option.

Any others you want?

Not right now thanks!

After commenting out the line (btw what is procedure here smarty comments or html comments?) do i need to clear out the cache or anything like that?

Will that affect all of the "move to" drop downs?

Hildy
06-20-2008, 05:00 PM
After commenting out the line (btw what is procedure here smarty comments or html comments?) do i need to clear out the cache or anything like that?
You *might* need to clear the compiled templates from libs/devblocks/tmp/templates_c/, but it should recognize that the file has changed without that.

And there's really no diktat about comment style... whatever works for you is fine. (I do find, though, that when editing the core php, C-style comments (/**/) on NEW lines work better than C++-style comments (//), because then SVN can merge your changes in with fewer conflicts.

Will that affect all of the "move to" drop downs?
It will only affect the ones that are attached to ticket views (overview, my workspaces, search, etc). The ones on the ticket display page and ticket reply are in other templates (templates/display/index.tpl.php and templates/display/rpc/reply.tpl.php).

zadunn
06-20-2008, 05:23 PM
I commented out the following;
/*
<optgroup label="Inboxes" style="">
{foreach from=$teams item=team}
<option value="t{$team->id}">{$team->name}</option>
{/foreach}
</optgroup>
*/


deleted the cache, went the overview and the inboxes are still listed.

Hildy
06-20-2008, 07:04 PM
/* */ is interpreted by php, but those files are handed to the smarty template engine, which ignores that. For .tpl.php files, you need to either use the <!-- --> html comments or the {* *} smarty comments.

Sorry for the confusion. :-)

zadunn
06-20-2008, 08:09 PM
Ok that worked. Thanks a lot.