Skip to content
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

Update Diff.php for VersionStrategy::DIFF #85

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Conversation

SirajCse
Copy link
Contributor

new and old both view sideBySide ->reverse()

foreach ($versionsBeforeThis->reverse() as $version) {
if (! empty($version->contents)) {
$oldContents = array_merge($oldContents, $version->contents);
}
}

new and old both view sideBySide ->reverse()

foreach ($versionsBeforeThis->reverse() as $version) {
                if (! empty($version->contents)) {
                    $oldContents = array_merge($oldContents, $version->contents);
                }
            }
@overtrue
Copy link
Owner

@mansoorkhan96 Can you help me to review this? thanks!

@mansoorkhan96
Copy link
Contributor

@mansoorkhan96 Can you help me to review this? thanks!

Hey,
I just tested this and it works. I did not see any significant changes thought.
Not sure what is the reason / expected behaviour. Any thoughts @SirajCse

@SirajCse
Copy link
Contributor Author

@mansoorkhan96 @mansoorkhan96
If you use Store strategy VersionStrategy::DIFF it 'Revisions List' is in reverse order otherwise it shows older list data first.

@overtrue overtrue merged commit 3fbdbdd into overtrue:5.x Oct 9, 2024
5 of 6 checks passed
@overtrue
Copy link
Owner

overtrue commented Oct 9, 2024

@SirajCse Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants