Details
-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 4.5
-
Fix Version/s: Unscheduled
-
Component/s: CiviContribute
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
Description
Premium images should be managed via CRM_Core_BAO_File and stored in civicrm_entity_file and civicrm_file. Resisted the urge to refactor this while addressing CRM-14283.
Refactoring would require (at least):
- changes to CRM_Contribute_Form_ManagePremiums, especially postProcess()
- probably deprecating CRM_Contribute_BAO_ManagePremiums
- remove fields 'image' and 'thumbnail' from civicrm_product
- a migration script to put the images in civicrm_file and update civicrm_entity_file