Skip to content
Snippets Groups Projects

Pdf attachment not working

Closed its4you requested to merge its4you/vtigercrm:pdf_attachment_not_working into 7.4.0
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -13,13 +13,13 @@ class Emails_MassSaveAjax_View extends Vtiger_Footer_View {
parent::__construct();
$this->exposeMethod('massSave');
}
public function requiresPermission(\Vtiger_Request $request) {
$permissions = parent::requiresPermission($request);
$permissions[] = array('module_parameter' => 'module', 'action' => 'DetailView');
return $permissions;
}
public function checkPermission(Vtiger_Request $request) {
return parent::checkPermission($request);
}
@@ -228,8 +228,8 @@ class Emails_MassSaveAjax_View extends Vtiger_Footer_View {
$params1 = array($current_id, $current_user->getId(), $ownerId, $moduleName . " Attachment", $recordModel->get('description'), $adb->formatDate($date_var, true), $adb->formatDate($date_var, true));
$adb->pquery($sql1, $params1);
$sql2 = "insert into vtiger_attachments(attachmentsid, name, description, type, path) values(?, ?, ?, ?, ?)";
$params2 = array($current_id, $filename, $recordModel->get('description'), $filetype, $upload_file_path);
$sql2 = "insert into vtiger_attachments(attachmentsid, name, storedname, description, type, path) values(?, ?, ?, ?, ?, ?)";
$params2 = array($current_id, $filename, $filename, $recordModel->get('description'), $filetype, $upload_file_path);
$result = $adb->pquery($sql2, $params2);
$sql3 = 'insert into vtiger_seattachmentsrel values(?,?)';
Loading