Comment 1 for bug 1783683

Revision history for this message
YumengBao (yumeng-bao) wrote :

The problem is caused by the "Interval " in the CreateForm, where Interval (in seconds or cron format) was a compulsory parameter no matter what audit_type it is.
In fact, the situation should be when the audit_type is ONESHOT, it is unnecessary to have Interval.
when the audit_type is CONTINUOUS, "Interval" parameter is required.
So here, the solution is: set the Interval parameter to required=False, and check if the parameter is null when audit_type is CONTINUOUS.