Skip to content

Commit

Permalink
[QCDP24-32] force active state on update
Browse files Browse the repository at this point in the history
  • Loading branch information
awset committed Sep 10, 2024
1 parent 47c9b38 commit 76c1469
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckanext/datarequests/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ def update_datarequest(context, data_dict):
_undictize_datarequest_basic(data_req, data_dict)
new_status = data_req.status

# Always force datarequest to active state when updating, some older dataset may be in null state
data_req.state = model.State.ACTIVE

session.add(data_req)
session.commit()

Expand Down

0 comments on commit 76c1469

Please sign in to comment.