Update details.php to show linked places

This commit is contained in:
Brian Quinion
2012-04-01 02:38:40 +01:00
parent c8c8471e73
commit bfe5119742
4 changed files with 36 additions and 6 deletions

View File

@@ -1481,7 +1481,6 @@ BEGIN
-- mark the linked place (excludes from search results)
UPDATE placex set linked_place_id = NEW.place_id where place_id = linkedPlacex.place_id;
DELETE from search_name where place_id = linkedPlacex.place_id;
END LOOP;
@@ -1505,7 +1504,6 @@ BEGIN
-- mark the linked place (excludes from search results)
UPDATE placex set linked_place_id = NEW.place_id where place_id = linkedPlacex.place_id;
DELETE from search_name where place_id = linkedPlacex.place_id;
END IF;
END LOOP;
@@ -1534,12 +1532,12 @@ BEGIN
-- mark the linked place (excludes from search results)
UPDATE placex set linked_place_id = NEW.place_id where place_id = linkedPlacex.place_id;
DELETE from search_name where place_id = linkedPlacex.place_id;
END LOOP;
END IF;
IF NEW.centroid IS NOT NULL THEN
place_centroid := NEW.centroid
place_centroid := NEW.centroid;
END IF;
END IF;