libraries are now filtered on id (there are duplicate names, such as "Bookmobile")
[Evergreen.git] / Open-ILS / src / reporter / templates / widgets / lib-choose.multiselect
index 96ae4bf..05c57b6 100644 (file)
@@ -34,7 +34,7 @@ org_unit_type = DBI.tie('actor.org_unit_type', 'id')
 WRAPPER select name=input_prefix multi="multi" onchange='change_multihier_' _ table_alias _ '(this);';
        depth = 0;
        FOR f = DBI.query(root);
-               INCLUDE option value=f.$fieldname;
+               INCLUDE option value=f.id content=f.name;
                INCLUDE next_level parent_ou = f.id depth;
        END;
 END;
@@ -63,7 +63,7 @@ BLOCK next_level;
                        x = x - 1;
                END;
 
-               INCLUDE option value=f.name content=val _ f.name id='mh_' _ f.id;
+               INCLUDE option value=f.id content=f.name content=val _ f.name id='mh_' _ f.id;
                INCLUDE next_level parent_ou = f.id;
        END;
 END;