X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/766f5705ecb9cd56adfbffd94c871959bb64c6fd..cd3150ed14f13bc1af071dd0f91015dd32360eae:/SL/DB/Helper/CustomVariables.pm?ds=sidebyside diff --git a/SL/DB/Helper/CustomVariables.pm b/SL/DB/Helper/CustomVariables.pm index 839c49066..6f470357d 100644 --- a/SL/DB/Helper/CustomVariables.pm +++ b/SL/DB/Helper/CustomVariables.pm @@ -149,9 +149,7 @@ sub _all_configs { require SL::DB::CustomVariableConfig; - $params{module} - ? SL::DB::Manager::CustomVariableConfig->get_all(query => [ module => $params{module} ]) - : SL::DB::Manager::CustomVariableConfig->get_all; + SL::DB::Manager::CustomVariableConfig->get_all_sorted($params{module} ? (query => [ module => $params{module} ]) : ()); } sub _overload_by_module { @@ -267,6 +265,11 @@ Secondary classes may currently not have cvars of their own. This is a Rose::DB::Object::Relationship accessor, generated for cvars. Use it like any other OneToMany relationship. +Note that unlike L this accessor only returns +variables that have already been created for this object. No variables +will be autovivified for configs for which no variable has been +created yet. + =item C Alias to C. Will only be installed if C was @@ -311,6 +314,7 @@ vivified with the same rules as in C. =head1 AUTHOR -Sven Schöling Es.schoeling@linet-services.deE +Sven Schöling Es.schoeling@linet-services.deE, +Moritz Bunkus Em.bunkus@linet-services.deE =cut