Commit 20584872 authored by Ruslan Zakirov's avatar Ruslan Zakirov
Browse files

if no CFs were listed as mandatory then all were mandatory

For example the following config were causing all CFs to
be mandatory:

    'Tech Support' => {
         '* -> resolved' => [ 'TimeWorked', 'TimeTaken', 'Content' ],
    },

Thanks to David Prangnell and Josh Jenkins.
parent 02e2ad23
......@@ -356,6 +356,8 @@ sub CheckMandatoryFields {
$label, $ARGSRef->{Status});
}
return \@errors unless @$cfs;
if ( not $CFs ){
$RT::Logger->error("Custom Fields object required to process mandatory custom fields");
return \@errors;
......
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