From c2e8c4a8651a513f516d06cd1441c743b731c08d Mon Sep 17 00:00:00 2001 From: Etienne Trimaille Date: Wed, 11 Dec 2024 15:41:03 +0100 Subject: [PATCH] Add a log if saving the feature has failed --- lizmap/modules/lizmap/controllers/edition.classic.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lizmap/modules/lizmap/controllers/edition.classic.php b/lizmap/modules/lizmap/controllers/edition.classic.php index f2cd64aa3d..5b4f02c681 100644 --- a/lizmap/modules/lizmap/controllers/edition.classic.php +++ b/lizmap/modules/lizmap/controllers/edition.classic.php @@ -767,6 +767,11 @@ public function saveFeature() // Some errors where encountered if (!$check || !$pkvals) { // Redirect to the display action + jLog::log( + 'Error in project '.$this->repository->getKey().'/'.$this->project->getKey().', '. + 'layer '.$this->layerId.' while saving the feature '.$this->featureIdParam, + 'lizmapadmin' + ); $rep->params['status'] = '1'; $rep->action = 'lizmap~edition:editFeature';