Skip to content

Conversation

@DeepDiver1975
Copy link
Member

… is not updated on consequitive changes and enable/disable actions

@DeepDiver1975 DeepDiver1975 added this to the 9.0.5 milestone Aug 11, 2016
@mention-bot
Copy link

@DeepDiver1975, thanks for your PR! By analyzing the annotation information on this pull request, we identified @PVince81, @blizzz and @rullzer to be potential reviewers

@DeepDiver1975 DeepDiver1975 changed the title In cases where the server dictates the link share expiration the date… [stable9] In cases where the server dictates the link share expiration the date… Aug 11, 2016
this.model.get('linkShare').expiration = expiration;
this.model.saveLinkShare({
expiration: moment($target.val(), 'DD-MM-YYYY').format('YYYY-MM-DD')
expiration: expiration
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, I'd expect a successful ajax response to automatically trigger the model's update of the expiration.

But this is not true backbone so might need to do it manually in saveLinkShare after detecting success.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is necessary because the model itself does not change in between before and after the ajax call.

Let's say the server dictates an expiry to be 11.08.2016 and the user changes the date.
The response in the ajax will hold 11.08.2016 again and therefore not update the ui.
The user selected value will stay.

yes - a mess 😉

Copy link
Contributor

Choose a reason for hiding this comment

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

fine by me

@PVince81
Copy link
Contributor

any test steps ?

@PVince81
Copy link
Contributor

Doesn't seem to work, the expiration date field doesn't update

@PVince81
Copy link
Contributor

Works now 👍

@PVince81
Copy link
Contributor

Does this need a forward port to stable9.1 and master ?

@DeepDiver1975
Copy link
Member Author

Does this need a forward port to stable9.1 and master ?

yes

… is not updated on consequitive changes and enable/disable actions
@DeepDiver1975 DeepDiver1975 force-pushed the fix-server-side-share-expiration-setting-stable9 branch from 643db0d to aedae12 Compare August 12, 2016 14:10
@PVince81 PVince81 merged commit a817327 into stable9 Aug 15, 2016
@PVince81 PVince81 deleted the fix-server-side-share-expiration-setting-stable9 branch August 15, 2016 09:13
@PVince81
Copy link
Contributor

@DeepDiver1975 please forward port to stable9.1 and master

@DeepDiver1975
Copy link
Member Author

@DeepDiver1975 please forward port to stable9.1 and master
@DeepDiver1975

#25860
#25861

@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants