Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14562

Premium image upload should conform to CiviCRM's standard file handling

    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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pittstains Frank J. Gómez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: