pull circ mods from the db and not the settings server
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Aug 2008 18:35:35 +0000 (18:35 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Aug 2008 18:35:35 +0000 (18:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10337 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ.pm

index ce9ff84..1731114 100644 (file)
@@ -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(