5 messages in com.mysql.lists.eventum-usersRE: How to retain values in the "Crea...
FromSent OnAttachments
Srivathsan, M IN BLR SISL08 Dec 2005 04:52 
Srivathsan, M IN BLR SISL08 Dec 2005 20:39 
Bryan Alsdorf12 Jan 2006 21:42 
Srivathsan, M IN BLR SISL12 Jan 2006 22:04 
Srivathsan, M IN BLR SISL08 Feb 2006 21:45 
Subject:RE: How to retain values in the "Create Issue" page?
From:Srivathsan, M IN BLR SISL (M.Sr@siemens.com)
Date:12/08/2005 08:39:09 PM
List:com.mysql.lists.eventum-users

Hi Bryan,

I was going through the source of view.php, update.php, and their corresponding "*.tpl.html" files. I realized that it would be much better to have "Clone Issue" feature, instead of trying to retain values in the "Create Issue" page. Of course, I would guard this "Clone Issue" feature so that it is only available to Manager and above.

I think, just an additional button in the "Issues Details" form (http://.../view.php?id=...") would suffice. But the problem is I don't know how to implement it as I am a "newbie" to web technologies and PHP. Also I would prefer this as a Feature in any of the upcoming versions of Eventum. I really don't want to touch the source code and customize it heavily.

Your thoughts?

Thanks and rgds, Watson

-----Original Message----- From: Srivathsan, M IN BLR SISL Sent: Thu 08-Dec-2005 18:22 To: 'Bryan Alsdorf' Cc: even@lists.mysql.com Subject: RE: How to retain values in the "Create Issue" page?

Hi Bryan,

I applied your suggested changes but of no avail. The values are still not retained in the Custom Fields. I am using Eventum 1.6.1 - not the dev version.

If what I have requested would be coming as a feature in any of the upcoming releases, I could wait for it. But a solution sooner is always welcome.

Thanks and rgds, Watson

-----Original Message----- From: Bryan Alsdorf [mailto:bry@mysql.com] Sent: Tue 29-Nov-2005 10:24 To: Srivathsan, M IN BLR SISL Cc: even@lists.mysql.com Subject: Re: How to retain values in the "Create Issue" page?

Srivathsan, M IN BLR SISL wrote:

Hi Bryan,

Thanks for the solution - it almost works for me. Only that Custom Fields' values are not preserved. Is there any way to preserve them too?

Modify new.tpl.html, lines 357-373 (atleast in my dev version).

{if $custom_fields[i].fld_type == 'text'} <input id="custom_field_{$custom_fields[i].fld_id}" class="default" type="text" name="custom_fields[{$custom_fields[i].fld_id}]" maxlength="255" size="50" tabindex="{$tabindex++}" value="{$smarty.request.custom_fields[$fld_id]}"> {elseif $custom_fields[i].fld_type == 'textarea'} <textarea id="custom_field_{$custom_fields[i].fld_id}" name="custom_fields[{$custom_fields[i].fld_id}]" rows="10" cols="60" tabindex="{$tabindex++}">{$smarty.request.custom_fields[$fld_id]}</texta rea> {elseif $custom_fields[i].fld_type == 'date'} {html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" month_empty='' time='--' display_years=false display_days=false month_extra="id=\"custom_field_`$custom_field_id`_month\" tabindex=\"`$tabindex++`\""} {include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Month]"} {html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" day_empty='' time='--' display_months=false display_years=false day_value_format=%02d day_extra="id=\"custom_field_`$custom_field_id`_day\" tabindex=\"`$tabindex++`\""} {include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Day]"} {html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" year_empty='' time='--' display_months=false display_days=false start_year=-1 end_year=+2 year_extra="id=\"custom_field_`$custom_field_id`_year\" tabindex=\"`$tabindex++`\""} {include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Year]"} {else} <select id="custom_field_{$custom_fields[i].fld_id}" {if $custom_fields[i].fld_type == 'multiple'}multiple size="3"{/if} class="default" name="custom_fields[{$custom_fields[i].fld_id}]{if $custom_fields[i].fld_type == 'multiple'}[]{/if}" tabindex="{$tabindex++}"> {if $custom_fields[i].fld_type != 'multiple'}<option value="-1">Please choose an option</option>{/if} {html_options options=$custom_fields[i].field_options selected=$smarty.request.custom_fields[$fld_id]} </select> {/if}

Regards, /bryan