Commit ec719519 authored by Frank Bergmann's avatar Frank Bergmann

- added beautiful error message if no default material is available

parent 3906eefc
......@@ -77,6 +77,16 @@ set default_material_id [db_string default_cost_center "
limit 1
" -default ""]
# Deal with no default material
if {"" == $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".
"
}
set button_pressed [template::form get_action task]
if {"delete" == $button_pressed} {
......
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