Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-timesheet2
Commits
297b6177
Commit
297b6177
authored
Mar 30, 2023
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5477 Hours comments lost in weekly entry screen
parent
ffe42f97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
new-2.tcl
www/hours/new-2.tcl
+7
-0
new.tcl
www/hours/new.tcl
+5
-1
No files found.
www/hours/new-2.tcl
View file @
297b6177
...
...
@@ -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
}
}
...
...
www/hours/new.tcl
View file @
297b6177
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment