Skip to content

Commit

Permalink
Merge pull request #283 from B3Partners/impr/issue#188
Browse files Browse the repository at this point in the history
backend fix for issue 188, reject bedrijventerrein
  • Loading branch information
mvdstruijk authored Nov 15, 2022
2 parents d5787c0 + a892a19 commit 15ec401
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ private void rejectFeature(String fid) throws Exception {
try {
SimpleFeature original = this.getStore().getFeatures(filter).features().next();
if (!(original.getAttribute(WORKFLOW_FIELDNAME).toString().equalsIgnoreCase(WorkflowStatus.bewerkt.label()) &&
this.getLayer().getName().equalsIgnoreCase(KAVEL_LAYER_NAME))) {
throw new IllegalArgumentException("Alleen 'bewerkt' kavels kunnen worden afgekeurd.");
(this.getLayer().getName().equalsIgnoreCase(KAVEL_LAYER_NAME) || this.getLayer().getName().equalsIgnoreCase(TERREIN_LAYER_NAME)))) {
throw new IllegalArgumentException("Alleen 'bewerkt' kavels en terreinen kunnen worden afgekeurd.");
}
Object terreinID = original.getAttribute(KAVEL_TERREIN_ID_FIELDNAME);
this.getStore().removeFeatures(filter);
Expand Down

0 comments on commit 15ec401

Please sign in to comment.