X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/48554177ac48f70b632fffdcfc92c80259261c45..28d69bb85e934088a56e6e8458cd08d3794e1f8b:/SL/DB/Helper/CustomVariables.pm diff --git a/SL/DB/Helper/CustomVariables.pm b/SL/DB/Helper/CustomVariables.pm index 2519c3690..ef6a0a9bc 100644 --- a/SL/DB/Helper/CustomVariables.pm +++ b/SL/DB/Helper/CustomVariables.pm @@ -44,7 +44,7 @@ sub make_cvar_accessor { my ($caller_package, %params) = @_; my @module_filter = $params{module} ? - ("config.module" => $params{module}) : + ("config_id" => [ \"(SELECT custom_variable_configs.id FROM custom_variable_configs WHERE custom_variable_configs.module = '$params{module}')" ]) : (); $caller_package->meta->add_relationships( @@ -52,7 +52,6 @@ sub make_cvar_accessor { type => 'one to many', class => 'SL::DB::CustomVariable', column_map => { ($params{id} || 'id') => 'trans_id' }, - manager_args => { with_objects => 'config' }, query_args => [ sub_module => $params{sub_module}, @module_filter ], } );