mirror of
https://github.com/itflow-org/itflow
synced 2026-11-23 21:07:22 +00:00
Quotes: a line can have a picture beside its name on the quote, guest link, portal and PDF, uploaded or pulled from a link to a picture or a product page's main picture, fetched only from public addresses and kept as ITFlow's own resized copy in uploads/quote_images; products keep a picture that a quote line added from them copies, Copy Quote copies them, and deleting a line, quote, client or product removes the files; Admin Settings Quotes can switch pictures off; database 3.8.8 adds quote_items.item_image, products.product_image and config_quote_show_images; 26.11.9 changelog entries
This commit is contained in:
@@ -42,6 +42,13 @@ if (isset($_POST['add_product'])) {
|
||||
|
||||
logAudit("Product", "Create", "$session_name created " . strtolower($type_label) . " $name", 0, $product_id);
|
||||
|
||||
// Its picture (functions/quote_images.php)
|
||||
$image_error = quoteImageSave('products', $product_id, $_POST, $_FILES);
|
||||
if ($image_error !== '') {
|
||||
flashAlert("$type_label <strong>" . escapeHtml($product['product_name']) . "</strong> added, but its picture couldn't be added: " . escapeHtml($image_error), 'warning');
|
||||
redirect();
|
||||
}
|
||||
|
||||
flashAlert("$type_label <strong>" . escapeHtml($product['product_name']) . "</strong> added");
|
||||
|
||||
redirect();
|
||||
@@ -76,6 +83,13 @@ if (isset($_POST['edit_product'])) {
|
||||
}
|
||||
}
|
||||
|
||||
// Its picture (functions/quote_images.php)
|
||||
$image_error = quoteImageSave('products', $product_id, $_POST, $_FILES);
|
||||
if ($image_error !== '') {
|
||||
flashAlert("<strong>" . escapeHtml($product['product_name']) . "</strong> saved$price_note - but its picture couldn't be added: " . escapeHtml($image_error), 'warning');
|
||||
redirect();
|
||||
}
|
||||
|
||||
flashAlert("<strong>" . escapeHtml($product['product_name']) . "</strong> saved$price_note");
|
||||
|
||||
redirect();
|
||||
|
||||
Reference in New Issue
Block a user