[vhffs-dev] [svn] commit: r59 - trunk/vhffs-api/src/Vhffs/Group.pm trunk/vhffs-panel/admin/group/list.pl

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Author: soda
Date: Mon Jul 18 00:14:01 2005
New Revision: 59

Log:
Fix a bug to list all groups in panel


Modified:
    trunk/vhffs-api/src/Vhffs/Group.pm
    trunk/vhffs-panel/admin/group/list.pl

Modified: trunk/vhffs-api/src/Vhffs/Group.pm
==============================================================================
--- trunk/vhffs-api/src/Vhffs/Group.pm (original)
+++ trunk/vhffs-api/src/Vhffs/Group.pm Mon Jul 18 00:14:01 2005
@@ -626,7 +626,7 @@
 	my $query = "SELECT groupname FROM vhffs_groups g, vhffs_object o WHERE g.object_id=o.object_id AND g.groupname NOT IN (SELECT username FROM vhffs_users )  ";
 	
 	$query .= " AND o.state=$state " if( defined $state );
-	$query .= " AND g.groupname LIKE '%$name% " if( defined $name );
+	$query .= " AND g.groupname LIKE '%".$name."%' " if( defined $name );
 
 	$query .= " ORDER BY g.groupname";
 

Modified: trunk/vhffs-panel/admin/group/list.pl
==============================================================================
--- trunk/vhffs-panel/admin/group/list.pl (original)
+++ trunk/vhffs-panel/admin/group/list.pl Mon Jul 18 00:14:01 2005
@@ -56,7 +56,7 @@
 
 	use Vhffs::Panel::Group;
 
-	my $groups = Vhffs::Group::getall_by_state( $vhffs , undef , $name );
+	my $groups = Vhffs::Group::getall( $vhffs , undef , $name );
 	my $group;
 	if( defined $groups )
 	{




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/