Skip to content

Only clear share password model when actually saved - #25911

Merged
ChristophWurst merged 1 commit into
masterfrom
bugfix/noid/fix-share-password-saving
Mar 11, 2021
Merged

Only clear share password model when actually saved#25911
ChristophWurst merged 1 commit into
masterfrom
bugfix/noid/fix-share-password-saving

Conversation

@PVince81

Copy link
Copy Markdown
Member

Instead of always clearing the password in the share model, now only do
it when it was actually saved.

Fixes an issue where saving another field would clear the password too
early and prevent it to be saved when the dropdown closed.

@PVince81PVince81 added bug 3. to review Waiting for reviews labels Mar 3, 2021
@PVince81PVince81 added this to the Nextcloud 22 milestone Mar 3, 2021
@PVince81PVince81 self-assigned this Mar 3, 2021
@PVince81

Copy link
Copy Markdown
MemberAuthor

/backport to stable21

@PVince81

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

@PVince81

Copy link
Copy Markdown
MemberAuthor

/backport to stable19

@PVince81

Copy link
Copy Markdown
MemberAuthor

pfff, so compiling with MODULE=files_sharing make build-js-production didn't produce the expected result

@PVince81

Copy link
Copy Markdown
MemberAuthor

/compile amend /

@npmbuildbot-nextcloud
npmbuildbot-nextcloudBotforce-pushed the bugfix/noid/fix-share-password-saving branch from 7bbe482 to 3b8a7d6CompareMarch 3, 2021 10:55
@PVince81

Copy link
Copy Markdown
MemberAuthor

/compile amend /

1 similar comment
@PVince81

Copy link
Copy Markdown
MemberAuthor

/compile amend /

@rullzer
rullzer requested a review from skjnldsvMarch 9, 2021 19:26
@PVince81

Copy link
Copy Markdown
MemberAuthor

pfff, why isn't the amend working ?

@PVince81

Copy link
Copy Markdown
MemberAuthor

let me do this manually...

Instead of always clearing the password in the share model, now only do
it when it was actually saved.
Fixes an issue where saving another field would clear the password too
early and prevent it to be saved when the dropdown closed.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
@PVince81
PVince81force-pushed the bugfix/noid/fix-share-password-saving branch from 3b8a7d6 to 3462444CompareMarch 11, 2021 08:07
@skjnldsv

Copy link
Copy Markdown
Member

pfff, why isn't the amend working ?

you're not alone, let me check

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

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@PVince81@skjnldsv@rullzer@ChristophWurst