Fixed: Service credential fields never saved from form to DB #85
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixed in commit
8dd6fddSeverity: Critical — extension was non-functional
What was wrong:
The service edit form has individual
cred_*fields (e.g.,cred_twitter_api_key) but the DB stores credentials as a single JSON column. The model never collected individual fields into JSON on save, and never expanded JSON back to fields on load.Fix applied:
ServiceModel::save()now collects allcred_*fields, strips thecred_{service_type}_prefix, JSON-encodes intocredentialscolumnServiceModel::loadFormData()expands credentials JSON back into individual form fields for editingcred_*keys are removed from data before table saveFiles:
ServiceModel.phpLabel:
priority: critical,status: pending-testingBranch created:
feature/85-fixed-service-credential-fields-never-sa