1 # This file has been auto-generated only because it didn't exist.
2 # Feel free to modify it at will; it will not be overwritten automatically.
4 package SL::DB::CustomVariableConfig;
8 use SL::DB::MetaSetup::CustomVariableConfig;
9 use SL::DB::Manager::CustomVariableConfig;
10 use SL::DB::Helper::ActsAsList;
12 __PACKAGE__->configure_acts_as_list(group_by => [qw(module)]);
18 push @errors, $::locale->text('The name is missing.') if !$self->name;
19 push @errors, $::locale->text('The description is missing.') if !$self->description;
20 push @errors, $::locale->text('The type is missing.') if !$self->type;
21 push @errors, $::locale->text('The option field is empty.') if (($self->type || '') eq 'select') && !$self->options;