<parameterscope="instance"datatype="number"min_n_values="1"max_n_values="1"name="TimesheetProjectNameMaxLength"default="50"description="Should we cut down the name of a task or ticket in the timesheet entry page to a maximum size? Default is 50, 0 disables this feature."/>
<parameterscope="instance"datatype="number"min_n_values="1"max_n_values="1"name="TimesheetProjectNrMaxLength"default="12"description="Should we cut down the nr (short name) of a task or ticket in the timesheet entry page to a maximum size? Default is 12, 0 disables this feature."/>
<parameterscope="instance"datatype="string"min_n_values="1"max_n_values="1"name="CustomHoursActionHashFunction"default=""description="Hook/callback in intranet-timesheet2/new-2 function to perform on the 'action hash' of update/delete/create actions resulting from the entry of hours by the user. For example, cosine has a 'im_cust_cosine_veto_action_hash' custom function to veto entries if prices are not set correctly. "/>
<parameterdatatype="number"min_n_values="1"max_n_values="1"name="AbsenceAutogenerateTitleTemplate"default=""description="Should the system automatically generate the title of an absence? An non-empty string will be treated as a template, you can use the variables absence_id, absence_type, absence_owner, absence_start_date and absence_end_date at the moment, prefixed by a dollar so that it can be evaluated as a string using TCL 'eval'. Example (without single quotes): '$absence_type from $absence_start_date to $absence_end_date by $absence_owner'"/>
@@ -46,6 +46,10 @@ set absence_type [lang::message::lookup "" intranet-timesheet2.Absence "Absence"
set duration_default_uom [parameter::get_from_package_key -package_key "intranet-timesheet2" -parameter "AbsenceDefaultDurationUnit" -default "days"]
# Autogenerate the absence title using a template?
# absence_id, absence_type, absence_user, absence_start_date and absence_end_date at the moment, prefixed by a dollar so that it can be evaluated as a string using TCL 'eval'."/>
# set autogenerate_title_default {$absence_type $absence_start_date bis $absence_end_date von $absence_owner}
set autogenerate_title_template [parameter::get_from_package_key -package_key "intranet-timesheet2" -parameter "AbsenceAutogenerateTitleTemplate" -default ""]
# Custom redirect? You should change all links to this
# page to the new URL, but sometimes you miss links...
...
...
@@ -238,9 +242,20 @@ if {[info exists absence_id]} {