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

Manage Premiums - Use Default Image Stores Incorrect Image URL

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: None
    • Fix Version/s: 1.7
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      When saving a new premium and selecting "Use default image" - an invalid url is saved to civicrm_product.image and thumbnail. Looks like an extraneous string composed of the "http//serverName" is being injected in the URL. You can recreate this on the 1.7 sandbox by adding a new premium under Manage Premiums. The resulting value in the DB is:

      http://sandbox.devel.civicrm.orghttp//sandbox.devel.civicrm.org/sites/sandbox.devel.civicrm.org/modules/civicrm/i/contribute/default_premium_thumb.jpg

      Please check the logic for setting image and thumbnail value for other cases as well (uploaded file, and display from web locations).

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: