From: Moritz Bunkus Date: Wed, 2 Nov 2011 16:19:03 +0000 (+0100) Subject: CVars: Kein Manager-Arg "config.module" verwenden X-Git-Tag: release-2.7.0beta1~157^2~10 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d5a003cf54b65b18d75401d2b7fc27ae6184efe0;p=kivitendo-erp.git CVars: Kein Manager-Arg "config.module" verwenden --- 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 ], } );