Skip to content

Commit

Permalink
Add a log if saving the feature has failed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Dec 11, 2024
1 parent f004d06 commit 41b3292
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lizmap/modules/lizmap/controllers/edition.classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 41b3292

Please sign in to comment.