From 96e46d3ebeb4324172039f9450879c2154cf6967 Mon Sep 17 00:00:00 2001 From: rangi Date: Thu, 1 Jun 2006 21:49:25 +0000 Subject: [PATCH] Fix for adding organisations to a borrower --- members/memberentry.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 703a99433f..a9784eafb8 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -204,9 +204,10 @@ SELECT upperagelimit, $nok=1; } else { $borrowerid = &newmember(%data); - if ($data{'organisations'}){ + if ($data{'organisations'}){ # need to add the members organisations - add_member_orgs($borrowerid,$data{'organisations'}); + my @orgs=split(/\|/,$data{'organisations'}); + add_member_orgs($borrowerid,\@orgs); } logaction($loggedinuser,"MEMBERS","add member", $borrowerid, ""); } -- 2.39.5