From: erickson Date: Mon, 11 Aug 2008 18:35:35 +0000 (+0000) Subject: pull circ mods from the db and not the settings server X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=729b8bf4acf062ddd37773c2883ac27c83c5a0d1;p=Evergreen.git pull circ mods from the db and not the settings server git-svn-id: svn://svn.open-ils.org/ILS/trunk@10337 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index ce9ff84ffd..17311143ad 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm @@ -67,9 +67,10 @@ __PACKAGE__->register_method( method => 'fetch_circ_mods', api_name => 'open-ils.circ.circ_modifier.retrieve.all'); sub fetch_circ_mods { - my $conf = OpenSRF::Utils::SettingsClient->new; - return $conf->config_value( - 'apps', 'open-ils.circ', 'app_settings', 'circ_modifiers', 'mod' ); + my($self, $conn, $args) = @_; + my $mods = new_editor()->retrieve_all_config_circ_modifier; + return [ map {$_->code} @$mods ] unless $$args{full}; + return $mods; } __PACKAGE__->register_method(