Skip to content

fix: modifying a proposal#8157

Merged
SebastianKrupinski merged 1 commit intonextcloud:mainfrom
taiebot:Fix-proposal-modification
Apr 13, 2026
Merged

fix: modifying a proposal#8157
SebastianKrupinski merged 1 commit intonextcloud:mainfrom
taiebot:Fix-proposal-modification

Conversation

@taiebot
Copy link
Copy Markdown
Contributor

@taiebot taiebot commented Apr 12, 2026

Current code is wrong because:

$currentDates[$key] = the old date from the database

$date = the new mutated date from the client

So when we detect a modification, we are returning the old object instead of the new one.

On main
create a proposal. (save)
exit
re-enter Try to modify it => nothing happens (fail silently)

With pull request
create a proposal (save)
exit
Modify it => proposal is modified accurately

@taiebot
Copy link
Copy Markdown
Contributor Author

taiebot commented Apr 12, 2026

Seen in #8095 (comment)
Tested and this does fix the modification

Signed-off-by: taiebot <dedreuil@yahoo.fr>
@SebastianKrupinski SebastianKrupinski force-pushed the Fix-proposal-modification branch from ea27efb to e5a1e27 Compare April 13, 2026 14:11
@SebastianKrupinski SebastianKrupinski added the 3. to review Waiting for reviews label Apr 13, 2026
@SebastianKrupinski SebastianKrupinski modified the milestones: v6.4.0, v6.3.0 Apr 13, 2026
@SebastianKrupinski SebastianKrupinski changed the title Fix modifying a proposal fix: modifying a proposal Apr 13, 2026
Copy link
Copy Markdown
Contributor

@SebastianKrupinski SebastianKrupinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. Looks good!

Not sure how I missed this during final testing, I guess I never dragged a date to a different time.

Thank you!!!

@SebastianKrupinski
Copy link
Copy Markdown
Contributor

/backport to stable6.3

@backportbot backportbot Bot added the backport-request A backport was requested for this pull request label Apr 13, 2026
@SebastianKrupinski SebastianKrupinski merged commit 89f17a4 into nextcloud:main Apr 13, 2026
40 of 41 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@backportbot backportbot Bot removed the backport-request A backport was requested for this pull request label Apr 13, 2026
@taiebot taiebot deleted the Fix-proposal-modification branch April 14, 2026 19:00
@github-actions
Copy link
Copy Markdown

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants