Project

General

Profile

Actions

Bug #7048

closed

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

Added by krileon over 4 years ago. Updated over 1 year 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 #2

Updated by krileon over 4 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Checking edit permission before attempting to pull the value from POST works.

Actions #3

Updated by krileon over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF