summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-05-04 11:10:51 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-05-04 11:10:51 (GMT)
commitb56586ed414e1a5754c852cde78473ef87c2128a (patch)
tree56235e49d1d5a6c00ac57bb1af52fa94ceebacb4
parentf98747ecae5be274c3d31e02f3c1baa75a0fe371 (diff)
added group description to pool names
-rw-r--r--rhimport.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/rhimport.pm b/rhimport.pm
index 7ecc2fe..2c3130b 100644
--- a/rhimport.pm
+++ b/rhimport.pm
@@ -47,11 +47,11 @@ sub get_dropboxes
{
my ($dbh, $user) = @_;
- my $sql = qq{select USER_PERMS.GROUP_NAME,DROPBOXES.PATH,DROPBOXES.TO_CART from USER_PERMS, DROPBOXES where USER_PERMS.USER_NAME='$user' and DROPBOXES.GROUP_NAME=USER_PERMS.GROUP_NAME;};
+ my $sql = qq{select USER_PERMS.GROUP_NAME,DROPBOXES.PATH,DROPBOXES.TO_CART,GROUPS.DESCRIPTION from USER_PERMS, DROPBOXES, GROUPS where USER_PERMS.USER_NAME='$user' and DROPBOXES.GROUP_NAME=USER_PERMS.GROUP_NAME and DROPBOXES.GROUP_NAME=GROUPS.NAME;};
my $sth = $dbh->prepare($sql);
$sth->execute();
my @allowed_dbs;
- while(my ($group, $path, $to_cart) = $sth->fetchrow_array()) {
+ while(my ($group, $path, $to_cart, $desc) = $sth->fetchrow_array()) {
$path =~ s/\/\*$//;
my $name = $path;
$name =~ s/^\/programm\///;
@@ -65,7 +65,7 @@ sub get_dropboxes
$name = "Jingles - $1";
}
elsif($name =~ /^pool\/pool(.*)$/) {
- $name = "Pool - $1";
+ $name = "Pool $1 - $desc";
}
elsif($name =~ /^pool\/(.*)$/) {
$name = "Pool - $1";