-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
to add multiname templates we can easy do it in pdf_rfltr_default.modules.php starting on line 148
// add this
$title = "";
$rowid = $object->array_options['options_rfltr_model_id'];
if ($rowid > 0) {
$sql = "SELECT title FROM " . MAIN_DB_PREFIX . "referenceletters WHERE rowid = " . $this->db->escape($rowid) . ";";
$this->db->begin();
dol_syslog(get_class($this) . "::" . __METHOD__, LOG_DEBUG);
$resql = $this->db->query($sql);
if ($resql) {
if ($this->db->num_rows($resql) > 0) {
$obj = $this->db->fetch_object($resql);
$title = '_'.$obj->title;
}
}
}
$file_dest = $dir_dest . '/' . $objectref .$title. '.pdf'; // change this
Metadata
Metadata
Assignees
Labels
No labels