Commit 297b6177 authored by Frank Bergmann's avatar Frank Bergmann

5477 Hours comments lost in weekly entry screen

parent ffe42f97
......@@ -41,6 +41,12 @@ ad_page_contract {
hours5:array,optional
hours6:array,optional
notes0:array,optional
notes1:array,optional
notes2:array,optional
notes3:array,optional
notes4:array,optional
notes5:array,optional
notes6:array,optional
internal_notes0:array,optional
materials0:array,optional
etc:array,optional
......@@ -334,6 +340,7 @@ foreach j $weekly_logging_days {
if {"skip" == $action && !$show_week_p && $db_notes != $screen_notes} { set action update }
if {"skip" == $action && !$show_week_p && $db_internal_notes != $screen_internal_notes} { set action update }
if {"skip" == $action && !$show_week_p && $db_materials != $screen_materials} { set action update }
if {"skip" != $action} { set action_hash($pid) $action }
}
......
......@@ -1283,7 +1283,7 @@ template::multirow foreach hours_multirow {
if { "t" == $edit_hours_p && $log_on_parent_p && !$invoice_id && !$solitary_main_project_p && !$closed_p && !$filter_surpress_output_p && !$blocked_by_wf_p && !$max_julian_date_exceed_p } {
# Write editable entries.
append table_rows "<td><input name=hours${i}.$project_id size=5 MAXLENGTH=5 value=\"$hours\"></td>\n"
append table_rows "<td>\n<input name=hours${i}.$project_id size=5 MAXLENGTH=5 value=\"$hours\">\n"
if {!$show_week_p} {
# Normal display - no Estimate to Complete
......@@ -1298,7 +1298,11 @@ template::multirow foreach hours_multirow {
if {$etc_planned_hours_no_default} { set etc_planned_hours_user "" };# Don't show default value if you really want an estimate...
append table_rows "<td width=20><nobr><input name=etc.$project_id size=1 value=$etc_planned_hours_user> [_ intranet-timesheet2.Hours]</nobr></td>\n"
}
} else {
# show_week_p
append table_rows "<input name=notes${i}.$project_id type=hidden value=\"[ns_quotehtml [value_if_exists note]]\">\n"
}
append table_rows "\n</td>\n"
} else {
if { $filter_surpress_output_p } {
# Filter in use - write only hidden fields
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment