From c5d0285d70c038b1333fa6375a92e4d69a91080f Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 25 Jan 2007 02:51:08 +0000 Subject: [PATCH] move placeholder in SyncProfilesToLdap back in query and interpolate instead --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Workflow/Activity/SyncProfilesToLdap.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index f53a62f35..c65e1870d 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -4,6 +4,7 @@ multipart/alternative messages would cause a blank post. - Fixed the 7.3.0-7.3.1 upgrade script so it doesn't cause multi-site upgrades to fail. + - fix: ldap workflow bug (perlDreamer Consulting, LLC) 7.3.6 - fix: Checkbox is no longer available when creating custom profile fields diff --git a/lib/WebGUI/Workflow/Activity/SyncProfilesToLdap.pm b/lib/WebGUI/Workflow/Activity/SyncProfilesToLdap.pm index b411b5aa9..eeb60cbcb 100644 --- a/lib/WebGUI/Workflow/Activity/SyncProfilesToLdap.pm +++ b/lib/WebGUI/Workflow/Activity/SyncProfilesToLdap.pm @@ -129,7 +129,7 @@ sub execute { my @fieldNames = $self->session->db->buildArray("SELECT fieldName FROM userProfileField WHERE profileCategoryId <> 4"); my $index = $instance->getScratch('ldapSelectIndex') || 0; - my $sth = $self->session->db->read("SELECT u.userId AS userId, a1.fieldData AS ldapConnection FROM users AS u INNER JOIN authentication AS a1 ON u.userId = a1.userId WHERE a1.fieldName = 'ldapConnection' AND u.authMethod = 'LDAP' ORDER BY ldapConnection, userId LIMIT ?,18446744073709551615", [$index]); + my $sth = $self->session->db->read("SELECT u.userId AS userId, a1.fieldData AS ldapConnection FROM users AS u INNER JOIN authentication AS a1 ON u.userId = a1.userId WHERE a1.fieldName = 'ldapConnection' AND u.authMethod = 'LDAP' ORDER BY ldapConnection, userId LIMIT $index,18446744073709551615"); my ($currentLinkId, $link, $ldapUrl, $ldap); my $skippingLink = 0;