Jeff Tompkins Guest
|
Posted: Thu Dec 04, 2008 3:47 am Post subject: Pre-populating custom fields when submitting a new, anonymou |
|
|
I'm doing some heavy customization to Eventum and seem to have hit a
snag. I'm trying to add this functionality:
When a new, anonymous issue is submitted using the post.php form, the
confirmation page will display an additional link below the text " You
may submit another issue if you so wish." with the text "You may also
create a new ticket based on this submitted ticket". The new link will
open the same anonymous posting form (post.php), but the entry fields
will be pre-populated with all the information that was just submitted.
I've modified the post.tpl.html to fetch and populate the "Summary" and
"Description" fields with no problem using Issue::getTitle() and
Issue::getDescription() (I added the getDescription() function, but it
does work properly). The problem I'm coming across is how to fetch and
pre-populate the Custom Fields in edit_custom_fields.tpl.html.
I've tried using Issue::getCustomFieldValue(), but I just can't seem to
get that function to work from within either
edit_custom_fields.tpl.html, or even in post.php.
I'm guessing this may be a PHP (or Smarty) problem I'm having, and may
not be specific to Eventum, but I thought I might post this here anyways.
Thank you for any insight you may offer.
-Jeff Tompkins |
|