-
Notifications
You must be signed in to change notification settings - Fork 236
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
N°7371 - Remembers the choice done in the popup that appears when saving public and private logs at the same time #636
base: develop
Are you sure you want to change the base?
Conversation
Please set a PR title explaining the symptom; not a generic one. |
Yes, as it now looks like this PR introduces that bug.. |
{operation: 'set_pref', code: sPreferenceCode, value: sPrefValue}, function (data) { | ||
//do nothing | ||
}).done(function() { | ||
oUserPreferences[sPreferenceCode] = sPrefValue; | ||
}); // Make it persistent |
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.
Comment is misleading. Making the POST call actually persist the preference, so it doesn't do "nothing" and it's not L221 that persists it (it updates local state).
if ((GetUserPreference('activity_panel.show_multiple_entries_submit_confirmation',true) === true | ||
|| GetUserPreference('activity_panel.show_multiple_entries_submit_confirmation', true) === "true") | ||
&& (Object.keys(this._GetEntriesFromAllForms()).length > 1)) { |
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.
This feels messy, if the return type isn't strict maybe you should wrap this in a helper to always return a boolean.
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.
I need to find what the "real" value is. I did a lot of testing and changed the value to 'true' many times that's why this test doesn't look good.
85a8e96
to
a47469e
Compare
Internal