diff --git a/app/controllers/admin/edition_access_limited_controller.rb b/app/controllers/admin/edition_access_limited_controller.rb index ec8baf9adeb..289ce34c6d9 100644 --- a/app/controllers/admin/edition_access_limited_controller.rb +++ b/app/controllers/admin/edition_access_limited_controller.rb @@ -16,6 +16,7 @@ def update render :edit else @edition.save! + PublishingApiDocumentRepublishingWorker.perform_async(@edition.document_id) EditorialRemark.create!( edition: @edition, diff --git a/test/functional/admin/edition_access_limited_controller_test.rb b/test/functional/admin/edition_access_limited_controller_test.rb index cf1350f06ca..17ec5d14769 100644 --- a/test/functional/admin/edition_access_limited_controller_test.rb +++ b/test/functional/admin/edition_access_limited_controller_test.rb @@ -64,6 +64,8 @@ class Admin::EditionAccessLimitedControllerTest < ActionController::TestCase supporting_organisations: [second_organisation], ) + PublishingApiDocumentRepublishingWorker.expects(:perform_async).with(edition.document_id) + editorial_remark = "Updating the organisations at the users request." put :update,