commit
0347d82660
@ -834,7 +834,7 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
$filePath = DOL_DATA_ROOT . '/'. $doc->filepath . '/'. $doc->filename;
|
$filePath = DOL_DATA_ROOT . '/'. $doc->filepath . '/'. $doc->filename;
|
||||||
$mime = dol_mimetype($filePath);
|
$mime = dol_mimetype($filePath);
|
||||||
$file = $actionstatic->id.'/'.$doc->filename;
|
$file = $actionstatic->id.'/'.$doc->filename;
|
||||||
$thumb = $actionstatic->id.'/thumbs/'.substr($doc->filename, 0, strrpos($doc->filename,'.')).'_mini'.substr($doc->filename, strrpos($doc->filename,'.'));
|
$thumb = $actionstatic->id.'/thumbs/'.substr($doc->filename, 0, strrpos($doc->filename, '.')).'_mini'.substr($doc->filename, strrpos($doc->filename, '.'));
|
||||||
$doclink = dol_buildpath('document.php', 1).'?modulepart=actions&attachment=0&file='.urlencode($file).'&entity='.$conf->entity;
|
$doclink = dol_buildpath('document.php', 1).'?modulepart=actions&attachment=0&file='.urlencode($file).'&entity='.$conf->entity;
|
||||||
$viewlink = dol_buildpath('viewimage.php', 1).'?modulepart=actions&file='.urlencode($thumb).'&entity='.$conf->entity;
|
$viewlink = dol_buildpath('viewimage.php', 1).'?modulepart=actions&file='.urlencode($thumb).'&entity='.$conf->entity;
|
||||||
|
|
||||||
@ -881,7 +881,7 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var $object ActionComm
|
* @var ActionComm $object ActionComm
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function getTicketActionCommEcmList($object)
|
function getTicketActionCommEcmList($object)
|
||||||
|
|||||||
@ -54,6 +54,7 @@ print '<br>';
|
|||||||
|
|
||||||
// List of import set
|
// List of import set
|
||||||
/*
|
/*
|
||||||
|
print '<div class="div-table-responsive-no-min">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Module").'</td>';
|
print '<td>'.$langs->trans("Module").'</td>';
|
||||||
@ -84,6 +85,7 @@ else
|
|||||||
print '<tr><td '.$bc[false].' colspan="2">'.$langs->trans("NoImportableData").'</td></tr>';
|
print '<tr><td '.$bc[false].' colspan="2">'.$langs->trans("NoImportableData").'</td></tr>';
|
||||||
}
|
}
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
print '</div>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -107,6 +109,7 @@ print '<br>';
|
|||||||
|
|
||||||
|
|
||||||
// List of available import format
|
// List of available import format
|
||||||
|
print '<div class="div-table-responsive-no-min">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td colspan="2">'.$langs->trans("AvailableFormats").'</td>';
|
print '<td colspan="2">'.$langs->trans("AvailableFormats").'</td>';
|
||||||
@ -130,6 +133,7 @@ foreach($liste as $key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
print '</div>';
|
||||||
|
|
||||||
|
|
||||||
//print '</div></div></div>';
|
//print '</div></div></div>';
|
||||||
|
|||||||
@ -2093,7 +2093,6 @@ class Product extends CommonObject
|
|||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
|
|
||||||
unset($this->oldcopy);
|
unset($this->oldcopy);
|
||||||
|
|
||||||
if ($this->db->num_rows($resql) > 0) {
|
if ($this->db->num_rows($resql) > 0) {
|
||||||
|
|||||||
@ -269,7 +269,6 @@ if (empty($reshook))
|
|||||||
$resql = $db->query("SELECT * FROM " . MAIN_DB_PREFIX . "product_fournisseur_price_extrafields WHERE fk_object = " . $object->product_fourn_price_id);
|
$resql = $db->query("SELECT * FROM " . MAIN_DB_PREFIX . "product_fournisseur_price_extrafields WHERE fk_object = " . $object->product_fourn_price_id);
|
||||||
// Insert a new extrafields row, if none exists
|
// Insert a new extrafields row, if none exists
|
||||||
if ($db->num_rows($resql) != 1) {
|
if ($db->num_rows($resql) != 1) {
|
||||||
|
|
||||||
$sql = "INSERT INTO " . MAIN_DB_PREFIX . "product_fournisseur_price_extrafields (fk_object, ";
|
$sql = "INSERT INTO " . MAIN_DB_PREFIX . "product_fournisseur_price_extrafields (fk_object, ";
|
||||||
foreach ($extrafield_values as $key => $value) {
|
foreach ($extrafield_values as $key => $value) {
|
||||||
$sql .= str_replace('options_', '', $key) . ', ';
|
$sql .= str_replace('options_', '', $key) . ', ';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user