Skip to content

Commit

Permalink
Merge pull request #5118 from Gustry/log-saving-feature
Browse files Browse the repository at this point in the history
Add a log if saving the feature has failed
  • Loading branch information
Gustry authored Dec 12, 2024
2 parents 2b8eb66 + 41b3292 commit 739b24d
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 739b24d

Please sign in to comment.