From 222cf81c0d7af9b2c2d8ec048d67d8e44fb9711d Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Wed, 4 Nov 2009 21:40:20 +0000 Subject: [PATCH] recently we had made the address fields optional. While filing site registration, if address is not given, the site record in PLCDB is created without any address_ids attached to it. Hence sophy could not update the address from the join request review page. this commit fixes the probelm --- planetlab/sites/join_request.php | 1 + 1 file changed, 1 insertion(+) diff --git a/planetlab/sites/join_request.php b/planetlab/sites/join_request.php index 815c328..07b9885 100644 --- a/planetlab/sites/join_request.php +++ b/planetlab/sites/join_request.php @@ -241,6 +241,7 @@ else if ($_POST['submitted'] ) $api->begin(); $api->UpdateSite($site_id,$site); if ($address_id) $api->UpdateAddress($address_id,$address); + else if(!empty($address)) $api->AddSiteAddress($site_id,$address); $api->UpdatePerson($pi_id,$pi); if ($tech_id != $pi_id) $api->UpdatePerson($tech_id,$tech); $api->commit(); -- 2.43.0