Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1244

Invoice image changes are not saved on Invoice Customization page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-b3, 3.2.0
    • Fix Version/s: 3.2.1
    • Component/s: None
    • Labels:
      None

      Description

      On the Invoice Customization page, when adding an invoice logo or background image, the images are successfully uploaded, but the company settings are not updated to reflect this change. Similarly, existing images can be removed from the file system, but they are still referenced in the database.

      See http://www.blesta.com/forums/index.php?/topic/2605-invoice-logo-is-uploaded-but-not-showing/

        Activity

        Hide
        tyson Tyson Phillips (Inactive) added a comment - - edited

        To pre-patch yourself, find /app/controllers/admin_company_billing.php (line 164):
        ----------------------
        $fields = array("inv_format", "inv_draft_format", "inv_start",
        "inv_increment", "inv_pad_size", "inv_pad_str", "inv_terms",
        "inv_paper_size", "inv_template", "inv_mimetype",
        "inv_display_logo", "inv_display_companyinfo",
        "inv_display_paid_watermark"
        );
        ----------------------
        And add "inv_logo", and "inv_background" to the array, i.e.:
        ----------------------
        $fields = array("inv_format", "inv_draft_format", "inv_start",
        "inv_increment", "inv_pad_size", "inv_pad_str", "inv_terms",
        "inv_paper_size", "inv_template", "inv_mimetype",
        "inv_display_logo", "inv_display_companyinfo",
        "inv_display_paid_watermark", "inv_logo", "inv_background"
        );
        ----------------------

        Show
        tyson Tyson Phillips (Inactive) added a comment - - edited To pre-patch yourself, find /app/controllers/admin_company_billing.php (line 164): ---------------------- $fields = array("inv_format", "inv_draft_format", "inv_start", "inv_increment", "inv_pad_size", "inv_pad_str", "inv_terms", "inv_paper_size", "inv_template", "inv_mimetype", "inv_display_logo", "inv_display_companyinfo", "inv_display_paid_watermark" ); ---------------------- And add "inv_logo", and "inv_background" to the array, i.e.: ---------------------- $fields = array("inv_format", "inv_draft_format", "inv_start", "inv_increment", "inv_pad_size", "inv_pad_str", "inv_terms", "inv_paper_size", "inv_template", "inv_mimetype", "inv_display_logo", "inv_display_companyinfo", "inv_display_paid_watermark", "inv_logo", "inv_background" ); ----------------------

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Jun/14