Repare code to forbidden var_dump() into code
This commit is contained in:
parent
480b48e5e1
commit
4de50da0dd
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
/*spl_autoload_register(function ($class_name) {
|
||||
var_dump('class='.$class_name);
|
||||
//var_dump('class='.$class_name);
|
||||
require $class_name;
|
||||
});
|
||||
*/
|
||||
|
||||
@ -558,11 +558,11 @@ if ($result) {
|
||||
}
|
||||
|
||||
|
||||
/*var_dump($tabpay);
|
||||
var_dump($tabcompany);
|
||||
var_dump($tabbq);
|
||||
var_dump($tabtp);
|
||||
var_dump($tabtype);*/
|
||||
//var_dump($tabpay);
|
||||
//var_dump($tabcompany);
|
||||
//var_dump($tabbq);
|
||||
//var_dump($tabtp);
|
||||
//var_dump($tabtype);
|
||||
|
||||
// Write bookkeeping
|
||||
if (!$error && $action == 'writebookkeeping') {
|
||||
@ -594,9 +594,9 @@ if (!$error && $action == 'writebookkeeping') {
|
||||
$db->begin();
|
||||
|
||||
// Introduce a protection. Total of tabtp must be total of tabbq
|
||||
/*var_dump($tabpay);
|
||||
var_dump($tabtp);
|
||||
var_dump($tabbq);exit;*/
|
||||
//var_dump($tabpay);
|
||||
//var_dump($tabtp);
|
||||
//var_dump($tabbq);exit;
|
||||
|
||||
// Bank
|
||||
if (!$errorforline && is_array($tabbq[$key])) {
|
||||
@ -1267,9 +1267,9 @@ if (empty($action) || $action == 'view') {
|
||||
$accounttoshowsubledger = length_accounta($k);
|
||||
if ($accounttoshow != $accounttoshowsubledger) {
|
||||
if (empty($accounttoshowsubledger) || $accounttoshowsubledger == 'NotDefined') {
|
||||
/*var_dump($tabpay[$key]);
|
||||
var_dump($tabtype[$key]);
|
||||
var_dump($tabbq[$key]);*/
|
||||
//var_dump($tabpay[$key]);
|
||||
//var_dump($tabtype[$key]);
|
||||
//var_dump($tabbq[$key]);
|
||||
//print '<span class="error">'.$langs->trans("ThirdpartyAccountNotDefined").'</span>';
|
||||
if (!empty($tabcompany[$key]['code_compta'])) {
|
||||
if (in_array($tabtype[$key], array('payment_various', 'payment_salary'))) {
|
||||
|
||||
@ -442,23 +442,23 @@ print '<td>'.$langs->trans("Parameter").'</td>';
|
||||
print '<td align="center" width="60">'.$langs->trans("Value").'</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
/*var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_MONDAY);
|
||||
var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_FRIDAY);
|
||||
var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SATURDAY);
|
||||
var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SUNDAY);
|
||||
*/
|
||||
//var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_MONDAY);
|
||||
//var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_FRIDAY);
|
||||
//var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SATURDAY);
|
||||
//var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SUNDAY);
|
||||
|
||||
if (!isset($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SATURDAY)) {
|
||||
$conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SATURDAY = 1;
|
||||
}
|
||||
if (!isset($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SUNDAY)) {
|
||||
$conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SUNDAY = 1;
|
||||
}
|
||||
/*
|
||||
var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_MONDAY);
|
||||
var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_FRIDAY);
|
||||
var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SATURDAY);
|
||||
var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SUNDAY);
|
||||
*/
|
||||
|
||||
//var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_MONDAY);
|
||||
//var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_FRIDAY);
|
||||
//var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SATURDAY);
|
||||
//var_dump($conf->global->MAIN_NON_WORKING_DAYS_INCLUDE_SUNDAY);
|
||||
|
||||
|
||||
// Set working days
|
||||
print '<tr class="oddeven">';
|
||||
|
||||
@ -407,10 +407,10 @@ if (empty($error) && !empty($xml)) {
|
||||
$checksumget = md5(join(',', $checksumconcat));
|
||||
$checksumtoget = trim((string) $xml->dolibarr_htdocs_dir_checksum);
|
||||
|
||||
/*var_dump(count($file_list['added']));
|
||||
var_dump($checksumget);
|
||||
var_dump($checksumtoget);
|
||||
var_dump($checksumget == $checksumtoget);*/
|
||||
//var_dump(count($file_list['added']));
|
||||
//var_dump($checksumget);
|
||||
//var_dump($checksumtoget);
|
||||
//var_dump($checksumget == $checksumtoget);
|
||||
|
||||
$resultcomment = '';
|
||||
|
||||
|
||||
@ -58,23 +58,6 @@ print $langs->trans("xcache.optimizer").': '.yn(ini_get('xcache.optimizer')).' (
|
||||
print $langs->trans("xcache.stat").': '.yn(ini_get('xcache.stat')).'<br>'."\n";
|
||||
print $langs->trans("xcache.coverager").': '.yn(ini_get('xcache.coverager')).'<br>'."\n";
|
||||
|
||||
//print xcache_get();
|
||||
/*
|
||||
$cacheinfos = array();
|
||||
for ($i = 0; $i < 10; $i ++)
|
||||
{
|
||||
$data = xcache_info(XC_TYPE_PHP, $i);
|
||||
$data['cacheid'] = $i;
|
||||
$cacheinfos[] = $data;
|
||||
}
|
||||
|
||||
var_dump($cacheinfos);
|
||||
|
||||
if ($action == 'clear')
|
||||
{
|
||||
xcache_clear_cache();
|
||||
}
|
||||
*/
|
||||
|
||||
// End of page
|
||||
llxFooter();
|
||||
|
||||
@ -444,9 +444,9 @@ if ($mode == 'overwrite') {
|
||||
|
||||
if ($mode == 'searchkey') {
|
||||
$nbempty = 0;
|
||||
/*var_dump($langcode);
|
||||
var_dump($transkey);
|
||||
var_dump($transvalue);*/
|
||||
//var_dump($langcode);
|
||||
//var_dump($transkey);
|
||||
//var_dump($transvalue);
|
||||
if (empty($langcode) || $langcode == '-1') {
|
||||
$nbempty++;
|
||||
}
|
||||
|
||||
@ -568,10 +568,9 @@ class Documents extends DolibarrApi
|
||||
{
|
||||
global $db, $conf;
|
||||
|
||||
/*var_dump($modulepart);
|
||||
var_dump($filename);
|
||||
var_dump($filecontent);
|
||||
exit;*/
|
||||
//var_dump($modulepart);
|
||||
//var_dump($filename);
|
||||
//var_dump($filecontent);exit;
|
||||
|
||||
if (empty($modulepart)) {
|
||||
throw new RestException(400, 'Modulepart not provided.');
|
||||
|
||||
@ -92,11 +92,11 @@ function formatObject($objtoshow, $prefix)
|
||||
$s .= '<tr><td>'.($prefix ? $prefix.' > ' : '').$key.'</td>';
|
||||
$s .= '<td>';
|
||||
if (in_array($key, array('date', 'datef', 'dateh', 'datec', 'datem', 'datep'))) {
|
||||
/*var_dump(is_object($val));
|
||||
var_dump(is_array($val));
|
||||
var_dump(is_array($val));
|
||||
var_dump(@get_class($val));
|
||||
var_dump($val);*/
|
||||
//var_dump(is_object($val));
|
||||
//var_dump(is_array($val));
|
||||
//var_dump(is_array($val));
|
||||
//var_dump(@get_class($val));
|
||||
//var_dump($val);
|
||||
$s .= dol_print_date($val, 'dayhour');
|
||||
} else {
|
||||
$s .= $val;
|
||||
|
||||
@ -1191,7 +1191,8 @@ if (count($listofextcals)) {
|
||||
foreach ($icalevents as $icalevent) {
|
||||
//var_dump($icalevent);
|
||||
|
||||
//print $icalevent['SUMMARY'].'->'.var_dump($icalevent).'<br>';exit;
|
||||
//print $icalevent['SUMMARY'].'->';
|
||||
//var_dump($icalevent);exit;
|
||||
if (!empty($icalevent['RRULE'])) {
|
||||
continue; // We found a repeatable event. It was already split into unitary events, so we discard general rule.
|
||||
}
|
||||
|
||||
@ -961,7 +961,9 @@ function show_day_events_pertype($username, $day, $month, $year, $monthshown, $s
|
||||
$ymd = sprintf("%04d", $year).sprintf("%02d", $month).sprintf("%02d", $day);
|
||||
|
||||
$nextindextouse = count($colorindexused); // At first run, this is 0, so fist user has 0, next 1, ...
|
||||
//if ($username->id && $day==1) var_dump($eventarray);
|
||||
//if ($username->id && $day==1) {
|
||||
//var_dump($eventarray);
|
||||
//}
|
||||
|
||||
// We are in a particular day for $username, now we scan all events
|
||||
foreach ($eventarray as $daykey => $notused) {
|
||||
|
||||
@ -1130,7 +1130,9 @@ function show_day_events2($username, $day, $month, $year, $monthshown, $style, &
|
||||
|
||||
$colorindexused[$user->id] = 0; // Color index for current user (user->id) is always 0
|
||||
$nextindextouse = count($colorindexused); // At first run this is 0, so first user has 0, next 1, ...
|
||||
//if ($username->id && $day==1) var_dump($eventarray);
|
||||
//if ($username->id && $day==1) {
|
||||
//var_dump($eventarray);
|
||||
//}
|
||||
|
||||
// We are in a particular day for $username, now we scan all events
|
||||
foreach ($eventarray as $daykey => $notused) {
|
||||
|
||||
@ -1066,8 +1066,8 @@ class BonPrelevement extends CommonObject
|
||||
// This also set the property $this->total with amount that is included into file
|
||||
$result = $this->generate($format, $executiondate, $type);
|
||||
if ($result < 0) {
|
||||
/*var_dump($this->error);
|
||||
var_dump($this->invoice_in_error); */
|
||||
//var_dump($this->error);
|
||||
//var_dump($this->invoice_in_error);
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -862,11 +862,11 @@ abstract class CommonInvoice extends CommonObject
|
||||
$pricewithtax = implode(unpack("H*", price2num($pricewithtaxstring, 2)));
|
||||
$pricetax = implode(unpack("H*", $pricetaxstring));
|
||||
|
||||
var_dump(strlen($this->thirdparty->name));
|
||||
var_dump(str_pad(dechex('9'), 2, '0', STR_PAD_LEFT));
|
||||
var_dump($this->thirdparty->name);
|
||||
var_dump(implode(unpack("H*", $this->thirdparty->name)));
|
||||
var_dump(price($this->total_tva, 0, $tmplang, 0, -1, 2));
|
||||
//var_dump(strlen($this->thirdparty->name));
|
||||
//var_dump(str_pad(dechex('9'), 2, '0', STR_PAD_LEFT));
|
||||
//var_dump($this->thirdparty->name);
|
||||
//var_dump(implode(unpack("H*", $this->thirdparty->name)));
|
||||
//var_dump(price($this->total_tva, 0, $tmplang, 0, -1, 2));
|
||||
|
||||
$s = '01'.str_pad(dechex(strlen($this->thirdparty->name)), 2, '0', STR_PAD_LEFT).$name;
|
||||
$s .= '02'.str_pad(dechex(strlen($this->thirdparty->tva_intra)), 2, '0', STR_PAD_LEFT).$vatnumber;
|
||||
|
||||
@ -8321,9 +8321,9 @@ class Form
|
||||
$listcheckedstring = '';
|
||||
|
||||
foreach ($array as $key => $val) {
|
||||
/* var_dump($val);
|
||||
var_dump(array_key_exists('enabled', $val));
|
||||
var_dump(!$val['enabled']);*/
|
||||
// var_dump($val);
|
||||
// var_dump(array_key_exists('enabled', $val));
|
||||
// var_dump(!$val['enabled']);
|
||||
if (array_key_exists('enabled', $val) && isset($val['enabled']) && !$val['enabled']) {
|
||||
unset($array[$key]); // We don't want this field
|
||||
continue;
|
||||
|
||||
@ -880,8 +880,8 @@ if ($mode == 'graph') {
|
||||
$px1 = new DolGraph();
|
||||
$mesg = $px1->isGraphKo();
|
||||
if (!$mesg) {
|
||||
/*var_dump($legend);
|
||||
var_dump($data);*/
|
||||
//var_dump($legend);
|
||||
//var_dump($data);
|
||||
$px1->SetData($data);
|
||||
unset($data);
|
||||
|
||||
|
||||
@ -330,9 +330,9 @@ function completeFileArrayWithDatabaseInfo(&$filearray, $relativedir)
|
||||
}
|
||||
}
|
||||
|
||||
/*var_dump($relativedir);
|
||||
var_dump($filearray);
|
||||
var_dump($filearrayindatabase);*/
|
||||
//var_dump($relativedir);
|
||||
//var_dump($filearray);
|
||||
//var_dump($filearrayindatabase);
|
||||
|
||||
// Complete filearray with properties found into $filearrayindatabase
|
||||
foreach ($filearray as $key => $val) {
|
||||
|
||||
@ -104,10 +104,9 @@ function dolSessionWrite($sess_id, $val)
|
||||
global $sessionlastvalueread;
|
||||
global $sessionidfound;
|
||||
|
||||
/*var_dump('write '.$sess_id);
|
||||
var_dump($val);
|
||||
var_dump('sessionlastvalueread='.$sessionlastvalueread.' sessionidfound='.$sessionidfound);
|
||||
*/
|
||||
//var_dump('write '.$sess_id);
|
||||
//var_dump($val);
|
||||
//var_dump('sessionlastvalueread='.$sessionlastvalueread.' sessionidfound='.$sessionidfound);
|
||||
|
||||
//$sessionlastvalueread='';
|
||||
if ($sessionlastvalueread != $val) {
|
||||
@ -141,7 +140,7 @@ function dolSessionWrite($sess_id, $val)
|
||||
$insert_query = "INSERT INTO ".MAIN_DB_PREFIX."session";
|
||||
$insert_query .= "(session_id, session_variable, last_accessed, fk_user, remote_ip, user_agent)";
|
||||
$insert_query .= " VALUES ('".$dbsession->escape($sess_id)."', '".$dbsession->escape($val)."', '".$dbsession->idate($time_stamp)."', 0, '".$dbsession->escape(getUserRemoteIP())."', '".$dbsession->escape(substr($_SERVER['HTTP_USER_AGENT'], 0, 255)."')";
|
||||
var_dump($insert_query);
|
||||
//var_dump($insert_query);
|
||||
$result = $dbsession->query($insert_query);
|
||||
if (!$result) {
|
||||
dol_print_error($dbsession);
|
||||
|
||||
@ -398,7 +398,7 @@ function show_list_sending_receive($origin, $origin_id, $filter = '')
|
||||
/*TODO Add link to expeditiondet_batch
|
||||
if (! empty($conf->productbatch->enabled))
|
||||
{
|
||||
var_dump($objp->edrowid);
|
||||
//var_dump($objp->edrowid);
|
||||
$lines[$i]->detail_batch
|
||||
if (isset($lines[$i]->detail_batch))
|
||||
{
|
||||
|
||||
@ -1048,17 +1048,15 @@ function showSkins($fuser, $edit = 0, $foruserprofile = false)
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
} else {
|
||||
/*var_dump($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER);
|
||||
//var_dump($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER);
|
||||
/*
|
||||
$default=$langs->trans('No');
|
||||
print '<tr class="oddeven">';
|
||||
print '<td>'.$langs->trans("MAIN_OPTIMIZEFORTEXTBROWSER").'</td>';
|
||||
print '<td colspan="'.($colspan-1).'">';
|
||||
if ($edit)
|
||||
{
|
||||
if ($edit) {
|
||||
print $form->selectyesno('MAIN_OPTIMIZEFORTEXTBROWSER', $conf->global->MAIN_OPTIMIZEFORTEXTBROWSER, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
print yn($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER);
|
||||
}
|
||||
print ' wspan class="opacitymedium">'.$langs->trans("Default").'</span>: <strong>'.$default.'</strong> ';
|
||||
|
||||
@ -115,7 +115,9 @@ class MenuManager
|
||||
$this->tabMenu = $tabMenu;
|
||||
//var_dump($tabMenu);
|
||||
|
||||
//if ($forcemainmenu == 'all') { var_dump($this->tabMenu); exit; }
|
||||
//if ($forcemainmenu == 'all') {
|
||||
//var_dump($this->tabMenu);
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -198,8 +198,12 @@ class MenuManager
|
||||
$submenu = new Menu();
|
||||
print_left_eldy_menu($this->db, $this->menu_array, $this->menu_array_after, $this->tabMenu, $submenu, 1, $tmpmainmenu, $tmpleftmenu, null, $this->type_user); // Fill $submenu (example with tmpmainmenu='home' tmpleftmenu='all', return left menu tree of Home)
|
||||
// Note: $submenu contains menu entry with substitution not yet done
|
||||
//if ($tmpmainmenu.'-'.$tmpleftmenu == 'home-all') { var_dump($submenu); exit; }
|
||||
//if ($tmpmainmenu=='accountancy') { var_dump($submenu->liste); exit; }
|
||||
//if ($tmpmainmenu.'-'.$tmpleftmenu == 'home-all') {
|
||||
//var_dump($submenu); exit;
|
||||
//}
|
||||
//if ($tmpmainmenu=='accountancy') {
|
||||
//var_dump($submenu->liste); exit;
|
||||
//}
|
||||
$nexturl = dol_buildpath($submenu->liste[0]['url'], 1);
|
||||
|
||||
$canonrelurl = preg_replace('/\?.*$/', '', $relurl);
|
||||
|
||||
@ -208,8 +208,12 @@ class MenuManager
|
||||
$submenu->add("/admin/dict.php?mainmenu=home", $langs->trans("DictionarySetup"), 1);
|
||||
$submenu->add("/admin/const.php?mainmenu=home", $langs->trans("OtherSetup"), 1);
|
||||
|
||||
//if ($tmpmainmenu.'-'.$tmpleftmenu == 'home-all') { var_dump($submenu); exit; }
|
||||
//if ($tmpmainmenu=='accountancy') { var_dump($submenu->liste); exit; }
|
||||
//if ($tmpmainmenu.'-'.$tmpleftmenu == 'home-all') {
|
||||
//var_dump($submenu); exit;
|
||||
//}
|
||||
//if ($tmpmainmenu=='accountancy') {
|
||||
//var_dump($submenu->liste); exit;
|
||||
//}
|
||||
$nexturl = dol_buildpath($submenu->liste[0]['url'], 1);
|
||||
|
||||
$canonrelurl = preg_replace('/\?.*$/', '', $relurl);
|
||||
|
||||
@ -356,7 +356,7 @@ class pdf_ban extends ModeleBankAccountDoc
|
||||
|
||||
foreach($object->linkedObjects as $objecttype => $objects)
|
||||
{
|
||||
var_dump($objects);exit;
|
||||
//var_dump($objects);exit;
|
||||
if ($objecttype == 'commande')
|
||||
{
|
||||
$outputlangs->load('orders');
|
||||
|
||||
@ -397,11 +397,11 @@ class pdf_sepamandate extends ModeleBankAccountDoc
|
||||
$bottomlasttab = $this->page_hauteur - $heightforinfotot - $heightforfreetext - $heightforfooter + 1;
|
||||
}
|
||||
|
||||
/*var_dump($tab_top);
|
||||
var_dump($heightforinfotot);
|
||||
var_dump($heightforfreetext);
|
||||
var_dump($heightforfooter);
|
||||
var_dump($bottomlasttab);*/
|
||||
//var_dump($tab_top);
|
||||
//var_dump($heightforinfotot);
|
||||
//var_dump($heightforfreetext);
|
||||
//var_dump($heightforfooter);
|
||||
//var_dump($bottomlasttab);
|
||||
|
||||
// Affiche zone infos
|
||||
$posy = $this->_tableau_info($pdf, $object, $bottomlasttab, $outputlangs);
|
||||
|
||||
@ -439,7 +439,7 @@ class ImportCsv extends ModeleImports
|
||||
/*include_once DOL_DOCUMENT_ROOT.'/accountancy/class/accountancysystem.class.php';
|
||||
$tmpchartofaccount = new AccountancySystem($this->db);
|
||||
$tmpchartofaccount->fetch($conf->global->CHARTOFACCOUNTS);
|
||||
var_dump($tmpchartofaccount->ref.' - '.$arrayrecord[0]['val']);
|
||||
//var_dump($tmpchartofaccount->ref.' - '.$arrayrecord[0]['val']);
|
||||
if ((! ($conf->global->CHARTOFACCOUNTS > 0)) || $tmpchartofaccount->ref != $arrayrecord[0]['val'])
|
||||
{
|
||||
$this->errors[$error]['lib']=$langs->trans('ErrorImportOfChartLimitedToCurrentChart', $tmpchartofaccount->ref);
|
||||
|
||||
@ -481,7 +481,7 @@ class ImportXlsx extends ModeleImports
|
||||
/*include_once DOL_DOCUMENT_ROOT.'/accountancy/class/accountancysystem.class.php';
|
||||
$tmpchartofaccount = new AccountancySystem($this->db);
|
||||
$tmpchartofaccount->fetch($conf->global->CHARTOFACCOUNTS);
|
||||
var_dump($tmpchartofaccount->ref.' - '.$arrayrecord[0]['val']);
|
||||
//var_dump($tmpchartofaccount->ref.' - '.$arrayrecord[0]['val']);
|
||||
if ((! ($conf->global->CHARTOFACCOUNTS > 0)) || $tmpchartofaccount->ref != $arrayrecord[0]['val'])
|
||||
{
|
||||
$this->errors[$error]['lib']=$langs->trans('ErrorImportOfChartLimitedToCurrentChart', $tmpchartofaccount->ref);
|
||||
|
||||
@ -662,7 +662,7 @@ class pdf_baleine extends ModelePDFProjects
|
||||
|
||||
foreach($object->linkedObjects as $objecttype => $objects)
|
||||
{
|
||||
var_dump($objects);exit;
|
||||
//var_dump($objects);exit;
|
||||
if ($objecttype == 'commande')
|
||||
{
|
||||
$outputlangs->load('orders');
|
||||
|
||||
@ -658,7 +658,7 @@ class pdf_timespent extends ModelePDFProjects
|
||||
|
||||
foreach($object->linkedObjects as $objecttype => $objects)
|
||||
{
|
||||
var_dump($objects);exit;
|
||||
//var_dump($objects);exit;
|
||||
if ($objecttype == 'commande')
|
||||
{
|
||||
$outputlangs->load('orders');
|
||||
|
||||
@ -1228,7 +1228,8 @@ class EmailCollector extends CommonObject
|
||||
$header = imap_fetchheader($connection, $imapemail, 0);
|
||||
$overview = imap_fetch_overview($connection, $imapemail, 0);
|
||||
|
||||
/* print $header; var_dump($overview); */
|
||||
// print $header;
|
||||
// var_dump($overview);
|
||||
|
||||
// Process $header of email
|
||||
$header = preg_replace('/\r\n\s+/m', ' ', $header); // When a header line is on several lines, merge lines
|
||||
@ -1336,19 +1337,20 @@ class EmailCollector extends CommonObject
|
||||
|
||||
$this->getmsg($connection, $imapemail);
|
||||
|
||||
//print $plainmsg; var_dump($plainmsg); exit;
|
||||
//print $plainmsg;
|
||||
//var_dump($plainmsg); exit;
|
||||
|
||||
//$htmlmsg,$plainmsg,$charset,$attachments
|
||||
$messagetext = $plainmsg ? $plainmsg : dol_string_nohtmltag($htmlmsg, 0);
|
||||
// Removed emojis
|
||||
$messagetext = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $messagetext);
|
||||
|
||||
/*var_dump($plainmsg);
|
||||
var_dump($htmlmsg);
|
||||
var_dump($messagetext);*/
|
||||
/*var_dump($charset);
|
||||
var_dump($attachments);
|
||||
exit;*/
|
||||
//var_dump($plainmsg);
|
||||
//var_dump($htmlmsg);
|
||||
//var_dump($messagetext);
|
||||
//var_dump($charset);
|
||||
//var_dump($attachments);
|
||||
//exit;
|
||||
|
||||
// Parse IMAP email structure
|
||||
/*
|
||||
@ -1381,11 +1383,13 @@ class EmailCollector extends CommonObject
|
||||
}
|
||||
}
|
||||
}
|
||||
//var_dump($result); var_dump($partplain); var_dump($parthtml);
|
||||
//var_dump($result);
|
||||
//var_dump($partplain);
|
||||
//var_dump($parthtml);
|
||||
|
||||
var_dump($structure);
|
||||
var_dump($parthtml);
|
||||
var_dump($partplain);
|
||||
//var_dump($structure);
|
||||
//var_dump($parthtml);
|
||||
//var_dump($partplain);
|
||||
|
||||
$messagetext = imap_fetchbody($connection, $imapemail, ($parthtml != '-1' ? $parthtml : ($partplain != '-1' ? $partplain : 1)), FT_PEEK);
|
||||
*/
|
||||
@ -1891,12 +1895,12 @@ class EmailCollector extends CommonObject
|
||||
// Overwrite values with values extracted from source email
|
||||
$errorforthisaction = $this->overwritePropertiesOfObject($actioncomm, $operation['actionparam'], $messagetext, $subject, $header);
|
||||
|
||||
/*var_dump($fk_element_id);
|
||||
var_dump($fk_element_type);
|
||||
var_dump($alreadycreated);
|
||||
var_dump($operation['type']);
|
||||
var_dump($actioncomm);
|
||||
exit;*/
|
||||
//var_dump($fk_element_id);
|
||||
//var_dump($fk_element_type);
|
||||
//var_dump($alreadycreated);
|
||||
//var_dump($operation['type']);
|
||||
//var_dump($actioncomm);
|
||||
//exit;
|
||||
|
||||
if ($errorforthisaction) {
|
||||
$errorforactions++;
|
||||
|
||||
@ -233,7 +233,8 @@ class EmailCollectorAction extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -207,7 +207,8 @@ class EmailCollectorFilter extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -318,7 +318,8 @@ class ConferenceOrBoothAttendee extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->table_element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -268,7 +268,10 @@ if (empty($reshook)) {
|
||||
$sub_qty[$j]['id_batch'] = GETPOST($batch, 'int'); // the id into llx_product_batch of stock record to move
|
||||
$subtotalqty += $sub_qty[$j]['q'];
|
||||
|
||||
//var_dump($qty);var_dump($batch);var_dump($sub_qty[$j]['q']);var_dump($sub_qty[$j]['id_batch']);
|
||||
//var_dump($qty);
|
||||
//var_dump($batch);
|
||||
//var_dump($sub_qty[$j]['q']);
|
||||
//var_dump($sub_qty[$j]['id_batch']);
|
||||
|
||||
$j++;
|
||||
$batch = "batchl".$i."_".$j;
|
||||
@ -325,7 +328,6 @@ if (empty($reshook)) {
|
||||
//var_dump($batch_line[2]);
|
||||
|
||||
if ($totalqty > 0) { // There is at least one thing to ship
|
||||
//var_dump($_POST);exit;
|
||||
for ($i = 0; $i < $num; $i++) {
|
||||
$qty = "qtyl".$i;
|
||||
if (!isset($batch_line[$i])) {
|
||||
|
||||
@ -102,7 +102,9 @@ if (empty($conf->global->EXPENSEREPORT_DISABLE_ATTACHMENT_ON_LINES)) {
|
||||
}
|
||||
print '<br>';
|
||||
$checked = '';
|
||||
//var_dump(GETPOST($file['relativename'])); var_dump($file['relativename']); var_dump($_FILES['userfile']['name']);
|
||||
//var_dump(GETPOST($file['relativename']));
|
||||
//var_dump($file['relativename']);
|
||||
//var_dump($_FILES['userfile']['name']);
|
||||
// If a file was just uploaded, we check to preselect it
|
||||
if (is_array($_FILES['userfile']['name'])) {
|
||||
foreach ($_FILES['userfile']['name'] as $tmpfile) {
|
||||
|
||||
@ -3399,12 +3399,12 @@ class CommandeFournisseur extends CommonOrder
|
||||
$diff_array = array_diff_assoc($qtydelivered, $qtywished); // Warning: $diff_array is done only on common keys.
|
||||
$keysinwishednotindelivered = array_diff(array_keys($qtywished), array_keys($qtydelivered)); // To check we also have same number of keys
|
||||
$keysindeliverednotinwished = array_diff(array_keys($qtydelivered), array_keys($qtywished)); // To check we also have same number of keys
|
||||
/*var_dump(array_keys($qtydelivered));
|
||||
var_dump(array_keys($qtywished));
|
||||
var_dump($diff_array);
|
||||
var_dump($keysinwishednotindelivered);
|
||||
var_dump($keysindeliverednotinwished);
|
||||
exit;*/
|
||||
//var_dump(array_keys($qtydelivered));
|
||||
//var_dump(array_keys($qtywished));
|
||||
//var_dump($diff_array);
|
||||
//var_dump($keysinwishednotindelivered);
|
||||
//var_dump($keysindeliverednotinwished);
|
||||
//exit;
|
||||
|
||||
if (count($diff_array) == 0 && count($keysinwishednotindelivered) == 0 && count($keysindeliverednotinwished) == 0) { //No diff => mean everythings is received
|
||||
if ($closeopenorder) {
|
||||
|
||||
@ -714,10 +714,10 @@ if (empty($reshook)) {
|
||||
|
||||
$dateinvoice = dol_mktime(0, 0, 0, GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int'), 'tzserver'); // If we enter the 02 january, we need to save the 02 january for server
|
||||
$datedue = dol_mktime(0, 0, 0, GETPOST('echmonth', 'int'), GETPOST('echday', 'int'), GETPOST('echyear', 'int'), 'tzserver');
|
||||
/*var_dump($dateinvoice.' '.dol_print_date($dateinvoice, 'dayhour'));
|
||||
var_dump(dol_now('tzuserrel').' '.dol_get_last_hour(dol_now('tzuserrel')).' '.dol_print_date(dol_now('tzuserrel'),'dayhour').' '.dol_print_date(dol_get_last_hour(dol_now('tzuserrel')), 'dayhour'));
|
||||
var_dump($db->idate($dateinvoice));
|
||||
exit;*/
|
||||
//var_dump($dateinvoice.' '.dol_print_date($dateinvoice, 'dayhour'));
|
||||
//var_dump(dol_now('tzuserrel').' '.dol_get_last_hour(dol_now('tzuserrel')).' '.dol_print_date(dol_now('tzuserrel'),'dayhour').' '.dol_print_date(dol_get_last_hour(dol_now('tzuserrel')), 'dayhour'));
|
||||
//var_dump($db->idate($dateinvoice));
|
||||
//exit;
|
||||
|
||||
// Replacement invoice
|
||||
if (GETPOST('type') == FactureFournisseur::TYPE_REPLACEMENT) {
|
||||
|
||||
@ -1117,11 +1117,9 @@ class Holiday extends CommonObject
|
||||
if ($infos_CP['statut'] == 5) {
|
||||
continue; // ignore not validated holidays
|
||||
}
|
||||
/*
|
||||
var_dump("--");
|
||||
var_dump("old: ".dol_print_date($infos_CP['date_debut'],'dayhour').' '.dol_print_date($infos_CP['date_fin'],'dayhour').' '.$infos_CP['halfday']);
|
||||
var_dump("new: ".dol_print_date($dateStart,'dayhour').' '.dol_print_date($dateEnd,'dayhour').' '.$halfday);
|
||||
*/
|
||||
//var_dump("--");
|
||||
//var_dump("old: ".dol_print_date($infos_CP['date_debut'],'dayhour').' '.dol_print_date($infos_CP['date_fin'],'dayhour').' '.$infos_CP['halfday']);
|
||||
//var_dump("new: ".dol_print_date($dateStart,'dayhour').' '.dol_print_date($dateEnd,'dayhour').' '.$halfday);
|
||||
|
||||
if ($halfday == 0) {
|
||||
if ($dateStart >= $infos_CP['date_debut'] && $dateStart <= $infos_CP['date_fin']) {
|
||||
|
||||
@ -284,7 +284,8 @@ class KnowledgeRecord extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->table_element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -393,7 +393,8 @@ if ($dirins && in_array($action, array('initapi', 'initphpunit', 'initpagecontac
|
||||
$varnametoupdate = 'showtabofpageagenda';
|
||||
}
|
||||
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result = dol_copy($srcfile, $destfile, 0, 0);
|
||||
|
||||
if ($result > 0) {
|
||||
@ -437,11 +438,13 @@ if ($dirins && $action == 'initsqlextrafields' && !empty($module)) {
|
||||
$srcdir = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||
$srcfile1 = $srcdir.'/sql/llx_mymodule_myobject_extrafields.sql';
|
||||
$destfile1 = $dirins.'/'.strtolower($module).'/sql/llx_'.strtolower($module).'_'.strtolower($objectname).'_extrafields.sql';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result1 = dol_copy($srcfile1, $destfile1, 0, 0);
|
||||
$srcfile2 = $srcdir.'/sql/llx_mymodule_myobject_extrafields.key.sql';
|
||||
$destfile2 = $dirins.'/'.strtolower($module).'/sql/llx_'.strtolower($module).'_'.strtolower($objectname).'_extrafields.key.sql';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result2 = dol_copy($srcfile2, $destfile2, 0, 0);
|
||||
|
||||
if ($result1 > 0 && $result2 > 0) {
|
||||
@ -489,7 +492,8 @@ if ($dirins && $action == 'inithook' && !empty($module)) {
|
||||
$srcdir = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||
$srcfile = $srcdir.'/class/actions_mymodule.class.php';
|
||||
$destfile = $dirins.'/'.strtolower($module).'/class/actions_'.strtolower($module).'.class.php';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result = dol_copy($srcfile, $destfile, 0, 0);
|
||||
|
||||
if ($result > 0) {
|
||||
@ -522,7 +526,8 @@ if ($dirins && $action == 'inittrigger' && !empty($module)) {
|
||||
$srcdir = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||
$srcfile = $srcdir.'/core/triggers/interface_99_modMyModule_MyModuleTriggers.class.php';
|
||||
$destfile = $dirins.'/'.strtolower($module).'/core/triggers/interface_99_mod'.$module.'_'.$module.'Triggers.class.php';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result = dol_copy($srcfile, $destfile, 0, 0);
|
||||
|
||||
if ($result > 0) {
|
||||
@ -555,7 +560,8 @@ if ($dirins && $action == 'initwidget' && !empty($module)) {
|
||||
$srcdir = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||
$srcfile = $srcdir.'/core/boxes/mymodulewidget1.php';
|
||||
$destfile = $dirins.'/'.strtolower($module).'/core/boxes/'.strtolower($module).'widget1.php';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result = dol_copy($srcfile, $destfile, 0, 0);
|
||||
|
||||
if ($result > 0) {
|
||||
@ -588,7 +594,8 @@ if ($dirins && $action == 'initcss' && !empty($module)) {
|
||||
$srcdir = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||
$srcfile = $srcdir.'/css/mymodule.css.php';
|
||||
$destfile = $dirins.'/'.strtolower($module).'/css/'.strtolower($module).'.css.php';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result = dol_copy($srcfile, $destfile, 0, 0);
|
||||
|
||||
if ($result > 0) {
|
||||
@ -626,7 +633,8 @@ if ($dirins && $action == 'initjs' && !empty($module)) {
|
||||
$srcdir = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||
$srcfile = $srcdir.'/js/mymodule.js.php';
|
||||
$destfile = $dirins.'/'.strtolower($module).'/js/'.strtolower($module).'.js.php';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result = dol_copy($srcfile, $destfile, 0, 0);
|
||||
|
||||
if ($result > 0) {
|
||||
@ -664,7 +672,8 @@ if ($dirins && $action == 'initcli' && !empty($module)) {
|
||||
$srcdir = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||
$srcfile = $srcdir.'/scripts/mymodule.php';
|
||||
$destfile = $dirins.'/'.strtolower($module).'/scripts/'.strtolower($module).'.php';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result = dol_copy($srcfile, $destfile, 0, 0);
|
||||
|
||||
if ($result > 0) {
|
||||
@ -702,7 +711,8 @@ if ($dirins && $action == 'initdoc' && !empty($module)) {
|
||||
$srcdir = DOL_DOCUMENT_ROOT.'/modulebuilder/template';
|
||||
$srcfile = $srcdir.'/doc/Documentation.asciidoc';
|
||||
$destfile = $dirins.'/'.strtolower($module).'/doc/Documentation.asciidoc';
|
||||
//var_dump($srcfile);var_dump($destfile);
|
||||
//var_dump($srcfile);
|
||||
//var_dump($destfile);
|
||||
$result = dol_copy($srcfile, $destfile, 0, 0);
|
||||
|
||||
if ($result > 0) {
|
||||
@ -2632,7 +2642,8 @@ if ($module == 'initmodule') {
|
||||
$pathtoobjlib = strtolower($module).'/lib/'.strtolower($module).'_'.strtolower($tabobj).'.lib.php';
|
||||
$pathtopicto = strtolower($module).'/img/object_'.strtolower($tabobj).'.png';
|
||||
|
||||
//var_dump($pathtoclass); var_dump($dirread);
|
||||
//var_dump($pathtoclass);
|
||||
//var_dump($dirread);
|
||||
$realpathtoclass = $dirread.'/'.$pathtoclass;
|
||||
$realpathtoapi = $dirread.'/'.$pathtoapi;
|
||||
$realpathtoagenda = $dirread.'/'.$pathtoagenda;
|
||||
|
||||
@ -338,7 +338,8 @@ class MyObject extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->table_element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -342,7 +342,8 @@ class Mo extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -311,7 +311,8 @@ class Partnership extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->table_element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -244,7 +244,8 @@ class ProductFournisseurPrice extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->table_element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -232,7 +232,11 @@ if ($action == 'createmovements' && !empty($user->rights->stock->mouvement->cree
|
||||
$firstrecord = array_shift($arraybatchinfo);
|
||||
$dlc = $firstrecord['eatby'];
|
||||
$dluo = $firstrecord['sellby'];
|
||||
//var_dump($batch); var_dump($arraybatchinfo); var_dump($firstrecord); var_dump($dlc); var_dump($dluo); exit;
|
||||
//var_dump($batch);
|
||||
//var_dump($arraybatchinfo);
|
||||
//var_dump($firstrecord);
|
||||
//var_dump($dlc);
|
||||
//var_dump($dluo); exit;
|
||||
} else {
|
||||
$dlc = '';
|
||||
$dluo = '';
|
||||
|
||||
@ -84,9 +84,9 @@ $monthofday = GETPOST('addtimemonth');
|
||||
$dayofday = GETPOST('addtimeday');
|
||||
$yearofday = GETPOST('addtimeyear');
|
||||
|
||||
/*var_dump(GETPOST('remonth'));
|
||||
var_dump(GETPOST('button_search_x'));
|
||||
var_dump(GETPOST('button_addtime'));*/
|
||||
//var_dump(GETPOST('remonth'));
|
||||
//var_dump(GETPOST('button_search_x'));
|
||||
//var_dump(GETPOST('button_addtime'));
|
||||
|
||||
$daytoparse = $now;
|
||||
if ($year && $month && $day) {
|
||||
|
||||
@ -239,7 +239,8 @@ if ($action == 'addtime' && $user->rights->projet->lire) {
|
||||
|
||||
if (!$updateoftaskdone) { // Check to update progress if no update were done on task.
|
||||
$object->fetch($taskid);
|
||||
//var_dump($object->progress);var_dump(GETPOST($taskid . 'progress', 'int')); exit;
|
||||
//var_dump($object->progress);
|
||||
//var_dump(GETPOST($taskid . 'progress', 'int')); exit;
|
||||
if ($object->progress != GETPOST($taskid.'progress', 'int')) {
|
||||
$object->progress = GETPOST($taskid.'progress', 'int');
|
||||
$result = $object->update($user);
|
||||
|
||||
@ -308,7 +308,8 @@ if ($action == 'addtime' && $user->rights->projet->lire && GETPOST('formfilterac
|
||||
|
||||
if (!$updateoftaskdone) { // Check to update progress if no update were done on task.
|
||||
$object->fetch($taskid);
|
||||
//var_dump($object->progress);var_dump(GETPOST($taskid . 'progress', 'int')); exit;
|
||||
//var_dump($object->progress);
|
||||
//var_dump(GETPOST($taskid . 'progress', 'int')); exit;
|
||||
if ($object->progress != GETPOST($taskid.'progress', 'int')) {
|
||||
$object->progress = GETPOST($taskid.'progress', 'int');
|
||||
$result = $object->update($user);
|
||||
|
||||
@ -270,7 +270,8 @@ class RecruitmentCandidature extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->table_element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -279,7 +279,8 @@ class RecruitmentJobPosition extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -611,7 +611,8 @@ class pdf_standard_recruitmentjobposition extends ModelePDFRecruitmentJobPositio
|
||||
|
||||
$pageposafter = $pdf->getPage();
|
||||
$posyafter = $pdf->GetY();
|
||||
//var_dump($posyafter); var_dump(($this->page_hauteur - ($heightforfooter+$heightforfreetext+$heightforinfotot))); exit;
|
||||
//var_dump($posyafter);
|
||||
//var_dump(($this->page_hauteur - ($heightforfooter+$heightforfreetext+$heightforinfotot))); exit;
|
||||
if ($posyafter > ($this->page_hauteur - ($heightforfooter + $heightforfreetext + $heightforinfotot))) { // There is no space left for total+free text
|
||||
if ($i == ($nblines - 1)) { // No more lines, and no space left to show total, so we create a new page
|
||||
$pdf->AddPage('', '', true);
|
||||
|
||||
@ -135,8 +135,8 @@ if (empty($reshook)) {
|
||||
}
|
||||
|
||||
if ($cancel) {
|
||||
/*var_dump($cancel);
|
||||
var_dump($backtopage);exit;*/
|
||||
//var_dump($cancel);
|
||||
//var_dump($backtopage);exit;
|
||||
if (!empty($backtopageforcancel)) {
|
||||
header("Location: ".$backtopageforcancel);
|
||||
exit;
|
||||
|
||||
@ -545,7 +545,9 @@ if (empty($reshook)) {
|
||||
$resql = $db->query($sql);
|
||||
}
|
||||
}
|
||||
//var_dump($sql); var_dump($newcu); var_dump($num); exit;
|
||||
//var_dump($sql);
|
||||
//var_dump($newcu);
|
||||
//var_dump($num); exit;
|
||||
|
||||
if (!$error) {
|
||||
$stripecu = $newcu;
|
||||
|
||||
@ -531,12 +531,12 @@ class Stripe extends CommonObject
|
||||
$this->code = $e->getStripeCode();
|
||||
$this->declinecode = $e->getDeclineCode();
|
||||
} catch (Exception $e) {
|
||||
/*var_dump($dataforintent);
|
||||
var_dump($description);
|
||||
var_dump($key);
|
||||
var_dump($paymentintent);
|
||||
var_dump($e->getMessage());
|
||||
var_dump($e);*/
|
||||
//var_dump($dataforintent);
|
||||
//var_dump($description);
|
||||
//var_dump($key);
|
||||
//var_dump($paymentintent);
|
||||
//var_dump($e->getMessage());
|
||||
//var_dump($e);
|
||||
$error++;
|
||||
$this->error = $e->getMessage();
|
||||
$this->code = '';
|
||||
@ -695,11 +695,11 @@ class Stripe extends CommonObject
|
||||
$_SESSION["stripe_setup_intent"] = $setupintent;
|
||||
}*/
|
||||
} catch (Exception $e) {
|
||||
/*var_dump($dataforintent);
|
||||
var_dump($description);
|
||||
var_dump($key);
|
||||
var_dump($setupintent);
|
||||
var_dump($e->getMessage());*/
|
||||
//var_dump($dataforintent);
|
||||
//var_dump($description);
|
||||
//var_dump($key);
|
||||
//var_dump($setupintent);
|
||||
//var_dump($e->getMessage());
|
||||
$error++;
|
||||
$this->error = $e->getMessage();
|
||||
}
|
||||
@ -780,7 +780,8 @@ class Stripe extends CommonObject
|
||||
);
|
||||
|
||||
//$a = \Stripe\Stripe::getApiKey();
|
||||
//var_dump($a);var_dump($stripeacc);exit;
|
||||
//var_dump($a);
|
||||
//var_dump($stripeacc);exit;
|
||||
try {
|
||||
if (empty($stripeacc)) { // If the Stripe connect account not set, we use common API usage
|
||||
if (empty($conf->global->STRIPE_USE_INTENT_WITH_AUTOMATIC_CONFIRMATION)) {
|
||||
|
||||
@ -741,7 +741,9 @@ if (empty($reshook)) {
|
||||
$date_end
|
||||
);
|
||||
|
||||
//var_dump($tva_tx);var_dump($productsupplier->fourn_pu);var_dump($price_base_type);exit;
|
||||
//var_dump($tva_tx);
|
||||
//var_dump($productsupplier->fourn_pu);
|
||||
//var_dump($price_base_type);exit;
|
||||
if ($result < 0) {
|
||||
$error++;
|
||||
setEventMessages($object->error, $object->errors, 'errors');
|
||||
|
||||
@ -290,7 +290,8 @@ class CTicketCategory extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->table_element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2494,7 +2494,8 @@ class Ticket extends CommonObject
|
||||
if (!$error && $id > 0) {
|
||||
setEventMessages($langs->trans('TicketMessageSuccessfullyAdded'), null, 'mesgs');
|
||||
|
||||
//var_dump($_SESSION); var_dump($listofpaths);exit;
|
||||
//var_dump($_SESSION);
|
||||
//var_dump($listofpaths);exit;
|
||||
|
||||
/*
|
||||
* Public area
|
||||
|
||||
@ -836,7 +836,9 @@ foreach ($object->fields as $key => $val) {
|
||||
$arrayofstatus[$key2] = $val2;
|
||||
}
|
||||
print '<td class="liste_titre'.($cssforfield ? ' '.$cssforfield : '').'">';
|
||||
//var_dump($arrayofstatus);var_dump($search['fk_statut']);var_dump(array_values($search[$key]));
|
||||
//var_dump($arrayofstatus);
|
||||
//var_dump($search['fk_statut']);
|
||||
//var_dump(array_values($search[$key]));
|
||||
$selectedarray = null;
|
||||
if (!empty($search[$key])) {
|
||||
$selectedarray = array_values($search[$key]);
|
||||
|
||||
@ -410,7 +410,8 @@ if ($sortorder) {
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; // This manage 'sendit' action when submitting new file.
|
||||
|
||||
$backtopage = $savbacktopage;
|
||||
//var_dump($backtopage); var_dump($action);
|
||||
//var_dump($backtopage);
|
||||
//var_dump($action);
|
||||
|
||||
if ($action == 'renamefile') { // Must be after include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; If action were renamefile, we set it to 'file_manager'
|
||||
$action = 'file_manager';
|
||||
|
||||
@ -318,7 +318,8 @@ class Workstation extends CommonObject
|
||||
foreach ($object->array_options as $key => $option) {
|
||||
$shortkey = preg_replace('/options_/', '', $key);
|
||||
if (!empty($extrafields->attributes[$this->table_element]['unique'][$shortkey])) {
|
||||
//var_dump($key); var_dump($clonedObj->array_options[$key]); exit;
|
||||
//var_dump($key);
|
||||
//var_dump($clonedObj->array_options[$key]); exit;
|
||||
unset($object->array_options[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user