From b52dd702292c0cb38e6551c56a5bbeed559e72ec Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 2 Jul 2013 14:21:05 +0200 Subject: [PATCH 01/38] Fix: Missing dependency --- build/debian/control | 1 + 1 file changed, 1 insertion(+) diff --git a/build/debian/control b/build/debian/control index 9f0a0fb2ef5..82fdc33fd27 100755 --- a/build/debian/control +++ b/build/debian/control @@ -13,6 +13,7 @@ Depends: libapache2-mod-php5 | libapache2-mod-php5filter | php5-cgi | php5-fpm | libphp-adodb, libnusoap-php, libphp-pclzip, + libfpdi-php, libjs-jquery, libjs-jquery-ui, libjs-flot, ckeditor, ttf-dejavu-core, xdg-utils, From b1b68eafe301791a7a41c6744d423b4879aeae26 Mon Sep 17 00:00:00 2001 From: Florian Henry Date: Mon, 8 Jul 2013 12:47:07 +0200 Subject: [PATCH 02/38] [ bug #972 ] Auto completion contact field do not take account the min caract number before search --- ChangeLog | 1 + htdocs/core/class/html.form.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3aa54336829..b95247b1301 100644 --- a/ChangeLog +++ b/ChangeLog @@ -56,6 +56,7 @@ For users: - New: [ task #823 ] Shipping_validate email notification. - New: [ task #900 ] Review code of ficheinter.class.php - Fix: [Bug #958] LocalTax2 for Spain fails on Suppliers +- Fix: [ bug #972 ] Auto completion contact field do not take account the min caract number before search For translators: - Update language files. diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 114a2356c6d..ca5b2c833d0 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -892,7 +892,7 @@ class Form if ($conf->use_javascript_ajax && $conf->global->CONTACT_USE_SEARCH_TO_SELECT && ! $forcecombo && ! $options_only) { - $out.= ajax_combobox($htmlname, $event); + $out.= ajax_combobox($htmlname, $event, $conf->global->CONTACT_USE_SEARCH_TO_SELECT); } if ($htmlname != 'none' || $options_only) $out.= ' - - - - - - -';*/ - if (empty($noform)) $out.= '
'; $out.= ''; $out.= ''; @@ -448,7 +435,8 @@ class FormFile $out.= ''; // Button - $out.= ''; + $addcolumforpicto=($delallowed || $printer || $morepicto); + $out.= ''; $genbutton = 'hooks['formfile']) { foreach($hookmanager->hooks['formfile'] as $module) @@ -524,22 +511,30 @@ class FormFile $date=(! empty($file['date'])?$file['date']:dol_filemtime($filedir."/".$file["name"])); $out.= ''.dol_print_date($date, 'dayhour').''; - if ($delallowed) + if ($delallowed || $printer || $morepicto) { $out.= ''; - $out.= ''.img_delete().''; - } - // Printer Icon - if ($printer) - { - $out.= ''; - $out.= ' '.img_printer().''; + if ($delallowed) + { + $out.= ''.img_picto($langs->trans("Delete"), 'delete.png').''; + //$out.=''; + } + if ($printer) + { + //$out.= ''; + $out.= ' '.img_picto($langs->trans("Print"),'printer.png').''; + } + if ($morepicto) + { + $out.=$morepicto; + } + $out.=''; } if (is_object($hookmanager)) { diff --git a/htdocs/core/lib/files.lib.php b/htdocs/core/lib/files.lib.php index 02cb6e663e2..e76705a1690 100644 --- a/htdocs/core/lib/files.lib.php +++ b/htdocs/core/lib/files.lib.php @@ -1233,7 +1233,7 @@ function dol_most_recent_file($dir,$regexfilter='',$excludefilter=array('\.meta$ /** * Security check when accessing to a document (used by document.php, viewimage.php and webservices) * - * @param string $modulepart Module of document + * @param string $modulepart Module of document (module, module_user_temp, module_user or module_temp) * @param string $original_file Relative path with filename * @param string $entity Restrict onto entity * @param User $fuser User object (forced) From f009100126e19c7a511a3a3a27c72865a54974e1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 12 Jul 2013 16:51:31 +0200 Subject: [PATCH 17/38] Fix: Bad column --- htdocs/compta/facture/impayees.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php index 1d7fda3934f..470dfa56ba3 100644 --- a/htdocs/compta/facture/impayees.php +++ b/htdocs/compta/facture/impayees.php @@ -414,7 +414,6 @@ if ($resql) print ''.price($total_paid).''; print ' '; print ' '; - print ' '; print "\n"; } From b5820315f9166f3cf0f56027a19ccadfad4cff36 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Jul 2013 10:34:19 +0200 Subject: [PATCH 18/38] Fix: Correct permissions on files --- dev/initdata/generate-commande.php | 0 dev/initdata/generate-facture.php | 0 dev/initdata/generate-produit.php | 0 dev/initdata/generate-propale.php | 4 +- dev/initdata/generate-societe.php | 0 htdocs/admin/geoipmaxmind.php | 2 +- htdocs/admin/pdf.php | 0 htdocs/admin/proxy.php | 0 htdocs/admin/sms.php | 0 htdocs/admin/system/perf.php | 142 +++++++++--------- htdocs/admin/translation.php | 0 htdocs/admin/workflow.php | 0 htdocs/core/class/CSMSFile.class.php | 0 .../core/class/commondocgenerator.class.php | 0 htdocs/core/class/extrafields.class.php | 0 htdocs/core/class/genericobject.class.php | 0 htdocs/core/class/hookmanager.class.php | 0 htdocs/core/class/html.formfile.class.php | 8 +- htdocs/core/class/html.formsms.class.php | 0 htdocs/core/class/rssparser.class.php | 0 htdocs/core/class/smtps.class.php | 0 htdocs/core/class/vcard.class.php | 0 .../interface_20_all_Logevents.class.php | 0 ...face_20_modPaypal_PaypalWorkflow.class.php | 0 ...e_20_modWorkflow_WorkflowManager.class.php | 0 ...terface_50_modAgenda_ActionsAuto.class.php | 28 ++-- ...interface_50_modLdap_Ldapsynchro.class.php | 0 ..._50_modNotification_Notification.class.php | 0 .../interface_90_all_Demo.class.php-NORUN | 0 htdocs/filefunc.inc.php | 0 htdocs/fourn/commande/index.php | 0 htdocs/fourn/commande/liste.php | 6 +- htdocs/includes/jquery/plugins/flot/Makefile | 24 +-- 33 files changed, 107 insertions(+), 107 deletions(-) mode change 100644 => 100755 dev/initdata/generate-commande.php mode change 100644 => 100755 dev/initdata/generate-facture.php mode change 100644 => 100755 dev/initdata/generate-produit.php mode change 100644 => 100755 dev/initdata/generate-propale.php mode change 100644 => 100755 dev/initdata/generate-societe.php mode change 100755 => 100644 htdocs/admin/pdf.php mode change 100755 => 100644 htdocs/admin/proxy.php mode change 100755 => 100644 htdocs/admin/sms.php mode change 100755 => 100644 htdocs/admin/translation.php mode change 100755 => 100644 htdocs/admin/workflow.php mode change 100755 => 100644 htdocs/core/class/CSMSFile.class.php mode change 100755 => 100644 htdocs/core/class/commondocgenerator.class.php mode change 100755 => 100644 htdocs/core/class/extrafields.class.php mode change 100755 => 100644 htdocs/core/class/genericobject.class.php mode change 100755 => 100644 htdocs/core/class/hookmanager.class.php mode change 100755 => 100644 htdocs/core/class/html.formsms.class.php mode change 100755 => 100644 htdocs/core/class/rssparser.class.php mode change 100755 => 100644 htdocs/core/class/smtps.class.php mode change 100755 => 100644 htdocs/core/class/vcard.class.php mode change 100755 => 100644 htdocs/core/triggers/interface_20_all_Logevents.class.php mode change 100755 => 100644 htdocs/core/triggers/interface_20_modPaypal_PaypalWorkflow.class.php mode change 100755 => 100644 htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php mode change 100755 => 100644 htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php mode change 100755 => 100644 htdocs/core/triggers/interface_50_modLdap_Ldapsynchro.class.php mode change 100755 => 100644 htdocs/core/triggers/interface_50_modNotification_Notification.class.php mode change 100755 => 100644 htdocs/core/triggers/interface_90_all_Demo.class.php-NORUN mode change 100755 => 100644 htdocs/filefunc.inc.php mode change 100755 => 100644 htdocs/fourn/commande/index.php diff --git a/dev/initdata/generate-commande.php b/dev/initdata/generate-commande.php old mode 100644 new mode 100755 diff --git a/dev/initdata/generate-facture.php b/dev/initdata/generate-facture.php old mode 100644 new mode 100755 diff --git a/dev/initdata/generate-produit.php b/dev/initdata/generate-produit.php old mode 100644 new mode 100755 diff --git a/dev/initdata/generate-propale.php b/dev/initdata/generate-propale.php old mode 100644 new mode 100755 index b0724ecde4f..6d9db265b37 --- a/dev/initdata/generate-propale.php +++ b/dev/initdata/generate-propale.php @@ -143,8 +143,8 @@ while ($i < GEN_NUMBER_PROPAL && $result >= 0) while ($xnbp < $nbp) { $prodid = rand(1, $num_prods); - $product=new Product($db); - $result=$product->fetch($prodids[$prodid]); + $product=new Product($db); + $result=$product->fetch($prodids[$prodid]); $result=$propal->addline($product->description, $product->price, rand(1,5), 0, 0, 0, $prodids[$prodid], 0); if ($result < 0) { diff --git a/dev/initdata/generate-societe.php b/dev/initdata/generate-societe.php old mode 100644 new mode 100755 diff --git a/htdocs/admin/geoipmaxmind.php b/htdocs/admin/geoipmaxmind.php index b06853b4383..fd7704c2858 100644 --- a/htdocs/admin/geoipmaxmind.php +++ b/htdocs/admin/geoipmaxmind.php @@ -90,7 +90,7 @@ if (! empty($conf->global->GEOIPMAXMIND_COUNTRY_DATAFILE)) } else { - if (function_exists('geoip_country_code_by_name')) $geointernal=true; + if (function_exists('geoip_country_code_by_name')) $geointernal=true; } // Mode diff --git a/htdocs/admin/pdf.php b/htdocs/admin/pdf.php old mode 100755 new mode 100644 diff --git a/htdocs/admin/proxy.php b/htdocs/admin/proxy.php old mode 100755 new mode 100644 diff --git a/htdocs/admin/sms.php b/htdocs/admin/sms.php old mode 100755 new mode 100644 diff --git a/htdocs/admin/system/perf.php b/htdocs/admin/system/perf.php index 563bb3e8385..4f24998227a 100644 --- a/htdocs/admin/system/perf.php +++ b/htdocs/admin/system/perf.php @@ -22,8 +22,8 @@ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; -require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php'; +require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; +require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php'; $langs->load("admin"); $langs->load("install"); @@ -55,18 +55,18 @@ print $langs->trans("YouMayFindPerfAdviceHere",'http://wiki.dolibarr.org/index.p print '
'; print ''.$langs->trans("XDebug").': '; $test=!function_exists('xdebug_is_enabled'); -if ($test) print img_picto('','tick.png').' '.$langs->trans("NotInstalled"); +if ($test) print img_picto('','tick.png').' '.$langs->trans("NotInstalled"); else { print img_picto('','warning').' '.$langs->trans("XDebugInstalled"); print $langs->trans("MoreInformation").' XDebug admin page'; -} -print '
'; +} +print '
'; // Applicative cache -print '
'; -print ''.$langs->trans("ApplicativeCache").': '; -$test=!empty($conf->memcached->enabled); +print '
'; +print ''.$langs->trans("ApplicativeCache").': '; +$test=!empty($conf->memcached->enabled); if ($test) { if (!empty($conf->global->MEMCACHED_SERVER)) @@ -78,28 +78,28 @@ if ($test) { print img_picto('','warning').' '.$langs->trans("MemcachedModuleAvailableButNotSetup"); } -} -else print img_picto('','warning').' '.$langs->trans("MemcachedNotAvailable"); +} +else print img_picto('','warning').' '.$langs->trans("MemcachedNotAvailable"); print '
'; // OPCode cache -print '
'; +print '
'; print ''.$langs->trans("OPCodeCache").': '; -$test1=function_exists('xcache_info'); +$test1=function_exists('xcache_info'); if ($test1) { print img_picto('','tick.png').' '.$langs->trans("XCacheInstalled"); - print $langs->trans("MoreInformation").' Xcache admin page'; -} + print $langs->trans("MoreInformation").' Xcache admin page'; +} else { $test2=function_exists('eaccelerator_info'); if ($test2) print img_picto('','tick.png').' '.$langs->trans("EAcceleratorInstalled"); else print $langs->trans("NoOPCodeCacheFound"); -} -print '
'; +} +print '
'; -// HTTPCacheStaticResources +// HTTPCacheStaticResources print '