-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curriculum inventory report rollover. #1616
Conversation
…ollover testing purposes.
rollover component gets thoroughly tested thru the corresponding controller acceptance test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor double save change. Looks great otherwise.
|
||
// generate token after the fact and persist report once more. | ||
$newReport->generateToken(); | ||
$this->reportManager->update($newReport, true, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to call this twice the entity should already be persisted from line 92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
token generation needs to happen after initial save. then the record must be saved again. this second save is legit.
fixes #1614.