Wrong default value on Settings Form

Created on 3 January 2025, 3 months ago

Problem/Motivation

In the form defined in salesforce/src/Form/SettingsForm.php (accessible at /admin/config/salesforce/settings), the long_term_cache_lifetime field is incorrectly using the default value of short_term_cache_lifetime instead of its own value. This leads to confusion and incorrect behavior when configuring Salesforce cache settings.

Steps to reproduce

  1. Navigate to /admin/config/salesforce/settings.
  2. Change the value of the short_term_cache_lifetime field.
  3. Observe that the long_term_cache_lifetime field now uses the same value as short_term_cache_lifetime, even though the long_term_cache_lifetime field itself was not modified.

Proposed resolution

Update the code in salesforce/src/Form/SettingsForm.php to use the correct default value for the long_term_cache_lifetime field:

πŸ› Bug report
Status

Active

Version

5.1

Component

salesforce.module

Created by

πŸ‡¨πŸ‡·Costa Rica josue2591

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024