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/
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"
);
----------------------