[Activity] Default priority value whed add Activity
Overview
I use a polish language CiviCRM. When i try create a activity - field "Priority" is empty. The default value doesn't insert into this field.
Reproduction steps
- Install CiviCRM with non-english language example polish.
- Click on Contacts -> Create activity.
- Field Priority is empty.
Current behaviour
Expected behaviour
Priority has selected "Normalny" (it's translated "Normal" value) as default.
Environment information
- CiviCRM: 5.24.6 and any earlier version for at least 3 years
- PHP: 7.3/..._
- CMS: Drupal 7.70/
- Database: MySQL 5.7.26-29
Comments
I think I found the cause of the problem, but I don't have the skills to correct it. I'm just an ordinary consultant. I found a line of code that is responsible for displaying this field in the add activity form. https://github.com/civicrm/civicrm-core/blob/a0f5cb5aff686458dc729ea0a43fbf166f9a8979/CRM/Activity/Form/Activity.php#L585 It shows search "Normal". However, I think that CiviCRM searches in the "Label" column in the database, not "Value" hence after changing the label - this field becomes empty by default.
When I replaced "Normal" on the test version with "Normal" (label in Polish) - the default option appeared correctly.