Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2-tasks
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
0
Merge Requests
0
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-tasks
Commits
d0a9182e
Commit
d0a9182e
authored
Aug 26, 2008
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed error when no tasks are there for default_material_id
parent
2a00a751
Pipeline
#488
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
new.tcl
www/new.tcl
+6
-4
No files found.
www/new.tcl
View file @
d0a9182e
...
...
@@ -70,20 +70,22 @@ if {"display" == $form_mode} {
# most used material...
set
default_material_id
[
db_string default_cost_center
"
select
material_id
from
im_timesheet_tasks_view
select
material_id
from
im_timesheet_tasks_view
group by material_id
order by count(*) DESC
limit 1
"
-default
""
]
if
{
""
==
$default
_material_id
}
{
set default_material_id
[
im_material_default_material_id
]
}
# Deal with no default material
if
{
""
==
$default
_material_id
}
{
if
{
""
==
$default
_material_id
|| 0 ==
$default
_material_id
}
{
ad_return_complaint 1
"
<b>No default 'Material'</b>:<br>
It seems somebody has deleted all materials in the system.<br>
Please tell your System Administrator to go to Home - Admin -
Materials and create at least on Material
"
.
Materials and create at least on Material.
"
}
...
...
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