La mise à jour d'un POI est cassée, le proxy élévation est cassé

This commit is contained in:
leosw
2026-01-18 20:07:49 +01:00
parent 0f502d6536
commit 454ccb7a65
5 changed files with 171 additions and 83 deletions

View File

@@ -250,9 +250,9 @@ class Poi
pg_execute($con, "poi_insert_specs_update", array( $this->version_id, $this->lon, $this->lat, $this->ele, $this->source, $this->remote_source_id ));
// 4) Update is_commentable
$query = "UPDATE contents SET is_commentable = $1 WHERE id = $2";
$query = "UPDATE contents SET is_commentable = $1, poi_type = $2 WHERE id = $3";
pg_prepare($con, "poi_update_commentable", $query);
pg_execute($con, "poi_update_commentable", array( $this->is_commentable ? 't' : 'f', $this->content_id));
pg_execute($con, "poi_update_commentable", array( $this->is_commentable ? 't' : 'f', $this->poi_type, $this->content_id));
// 5) Add contributor
$query = "INSERT INTO content_contributors (content, contributor)