Project

General

Profile

Actions

Bug #7048

closed

A field missing from POST is reset even if a value exists

Added by krileon over 6 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
22 February 2018
Due date:
% Done:

100%

Estimated time:

Description

A field that's accessible only to moderators is being conditioned during profile edit so it won't exist in POST for regular users, but a value will exist. This however causes it to do a value reset while checking post data causing it to not check against the existing value. Possible solution is to check for edit access of the field using API call. If not accessible then use the existing stored value and don't bother looking in POST.

Actions

Also available in: Atom PDF