Skip to content

Commit

Permalink
Merge pull request #147 from CareEvolution/eschramm/fixConsentDocRevi…
Browse files Browse the repository at this point in the history
…ewed

Set documentReviewed to YES for autoAgree case
  • Loading branch information
eschramm authored Sep 3, 2024
2 parents e0e31a0 + fe50eaa commit 7277d72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ORK1Kit/ORK1Kit/Consent/ORK1ConsentReviewStepViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ - (void)stepDidChange {
- (void)viewDidLoad {
[super viewDidLoad];

// If autoAgree, _documentReviewed will never get set to YES since the workflow with buttons is bypassed
ORK1ConsentReviewStep* consentReviewStep = (ORK1ConsentReviewStep *)[self step];
if (consentReviewStep.autoAgree) {
_documentReviewed = YES;
}

// Prepare pageViewController
_pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll
navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal
Expand Down
6 changes: 6 additions & 0 deletions ResearchKit/Consent/ORKConsentReviewStepViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ - (void)stepDidChange {
- (void)viewDidLoad {
[super viewDidLoad];

// If autoAgree, _documentReviewed will never get set to YES since the workflow with buttons is bypassed
ORKConsentReviewStep* consentReviewStep = (ORKConsentReviewStep *)[self step];
if (consentReviewStep.autoAgree) {
_documentReviewed = YES;
}

// Prepare pageViewController
_pageViewController = [[UIPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll
navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal
Expand Down

0 comments on commit 7277d72

Please sign in to comment.