From bdc4b07daa75812a4a8cd6a1e3dced00de7ada56 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 11 Oct 2020 10:09:28 +0200 Subject: [PATCH] set api as default for doi source. #578 --- app/models/doi.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/doi.rb b/app/models/doi.rb index 2026b3659..06f12949e 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -2112,6 +2112,7 @@ def set_defaults self.is_active = (aasm_state == "findable") ? "\x01" : "\x00" self.version = version.present? ? version + 1 : 1 self.updated = Time.zone.now.utc.iso8601 + self.source = "api" if source.blank? end def update_agency