diff --git a/ChangeLog b/ChangeLog index 8a61005c097..8f2b10398e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -119,6 +119,8 @@ 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 +- Fix : [ bug #971 ] html.form.class.php select_contact with autocomplete do not exclude id from exclude array For translators: - Update language files. diff --git a/build/debian/control b/build/debian/control index d88e31cbc3f..8810a7d189c 100755 --- a/build/debian/control +++ b/build/debian/control @@ -59,4 +59,4 @@ Description: Web based software to manage a small company or foundation PDF exports, And a lot of more modules... . - You can also add third parties external modules or develop yours. \ No newline at end of file + You can also add third parties external modules or develop yours. diff --git a/htdocs/admin/geoipmaxmind.php b/htdocs/admin/geoipmaxmind.php index df082ed4881..fd7704c2858 100644 --- a/htdocs/admin/geoipmaxmind.php +++ b/htdocs/admin/geoipmaxmind.php @@ -126,12 +126,12 @@ print '
'; print $langs->trans("NoteOnPathLocation").'
'; -$url1='http://www.maxmind.com/app/perl?rId=awstats'; +$url1='http://www.maxmind.com/en/city?rId=awstats'; print $langs->trans("YouCanDownloadFreeDatFileTo",''.$url1.''); print '
'; -$url2='http://www.maxmind.com/app/perl?rId=awstats'; +$url2='http://www.maxmind.com/en/city?rId=awstats'; print $langs->trans("YouCanDownloadAdvancedDatFileTo",''.$url2.''); if ($geoip) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 62651cd4067..5a4ba72be04 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -639,9 +639,9 @@ class Commande extends CommonOrder $sql.= ", remise_absolue, remise_percent"; $sql.= ", entity"; $sql.= ")"; - $sql.= " VALUES ('(PROV)',".$this->socid.", ".$this->db->idate($now).", ".$user->id; + $sql.= " VALUES ('(PROV)',".$this->socid.", '".$this->db->idate($now)."', ".$user->id; $sql.= ", ".($this->fk_project?$this->fk_project:"null"); - $sql.= ", ".$this->db->idate($date); + $sql.= ", '".$this->db->idate($date)."'"; $sql.= ", ".($this->source>=0 && $this->source != '' ?$this->source:'null'); $sql.= ", '".$this->db->escape($this->note_private)."'"; $sql.= ", '".$this->db->escape($this->note_public)."'"; @@ -991,7 +991,7 @@ class Commande extends CommonOrder $this->fetch($ret); $this->valid($user); } - return 1; + return $ret; } else return -1; } 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"; } diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 9a7d798cc4e..c913a06be06 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -971,7 +971,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/js/lib_head.js b/htdocs/core/js/lib_head.js index 071034b5fcc..4d088081725 100644 --- a/htdocs/core/js/lib_head.js +++ b/htdocs/core/js/lib_head.js @@ -810,7 +810,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton, minLength: this.options.minLengthToAutocomplete, source: function( request, response ) { var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" ); - response( select.children( "option" ).map(function() { + response( select.children( "option:enabled" ).map(function() { var text = $( this ).text(); if ( this.value && ( !request.term || matcher.test(text) ) ) return { 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) diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index 9e1c5ad2e14..b39d5216218 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -83,6 +83,7 @@ if (! empty($dolibarr_main_document_root_alt)) print "Should found something like following examples:
\n"; print "\"/extensions\"
\n"; print "\"/extensions1,/extensions2,...\"
\n"; + print "\"/../extensions\"
\n"; print "\"/custom\"
\n"; exit; } diff --git a/htdocs/paypal/admin/paypal.php b/htdocs/paypal/admin/paypal.php index c91e2ff0c80..322030e6e36 100644 --- a/htdocs/paypal/admin/paypal.php +++ b/htdocs/paypal/admin/paypal.php @@ -250,9 +250,9 @@ $sandboxpaypalurl='developer.paypal.com'; print '
'; print 'Your API authentication information can be found with following steps. We recommend that you open a separate Web browser session when carrying out this procedure.
-1. Log in to your PayPal Premier or Business account (on real paypal '.$realpaypalurl.' (or sandbox '.$sandboxpaypalurl.').
-2. Click the Profile subtab located under the My Account heading.
-3. Click the API Access link under the Account Information header.
+1. Log in to your PayPal account (on real paypal '.$realpaypalurl.' (or sandbox '.$sandboxpaypalurl.').
+2. Click the "Profile" or "Preferencies" subtab located under the My Account heading.
+3. Click the link "API Access".
4. Click the View API Certificate link in the right column.
5. Click the Request API signature radio button on the Request API Credentials page.
6. Complete the Request API Credential Request form by clicking the agreement checkbox and clicking Submit.