Commit 6feb40c9 authored by Aurel's avatar Aurel

check incident type is defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13737 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a3192f15
......@@ -85,6 +85,10 @@ if not transaction.Baobab_checkCounterDateOpen(site=var_source, date=date):\n
msg = Message(domain = "ui", message="Counter Date is not opened")\n
raise ValidationFailed, (msg,)\n
\n
if var_type in (None, \'\'):\n
msg = Message(domain = "ui", message="Incident Type must be defined.")\n
raise ValidationFailed, (msg,)\n
\n
if (var_type == \'reception\' and var_source_transport is None):\n
msg = Message(domain = "ui", message="Remote Site not null.")\n
raise ValidationFailed, (msg,)\n
......
240
\ No newline at end of file
242
\ No newline at end of file
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