Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
40d30f9a60
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/core/lib/ajax.lib.php
|
* \file htdocs/core/lib/ajax.lib.php
|
||||||
* \brief Page called by Ajax request for produts
|
* \brief Page called to enhance interface with Javascript and Ajax features.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -317,7 +317,7 @@ if (!defined('NOLOGIN') && !defined('NOIPCHECK') && !empty($dolibarr_main_restri
|
|||||||
|
|
||||||
// Loading of additional presentation includes
|
// Loading of additional presentation includes
|
||||||
if (!defined('NOREQUIREHTML')) require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php'; // Need 660ko memory (800ko in 2.2)
|
if (!defined('NOREQUIREHTML')) require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php'; // Need 660ko memory (800ko in 2.2)
|
||||||
if (!defined('NOREQUIREAJAX') && $conf->use_javascript_ajax) require_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php'; // Need 22ko memory
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php'; // Need 22ko memory
|
||||||
|
|
||||||
// If install or upgrade process not done or not completely finished, we call the install page.
|
// If install or upgrade process not done or not completely finished, we call the install page.
|
||||||
if (!empty($conf->global->MAIN_NOT_INSTALLED) || !empty($conf->global->MAIN_NOT_UPGRADED))
|
if (!empty($conf->global->MAIN_NOT_INSTALLED) || !empty($conf->global->MAIN_NOT_UPGRADED))
|
||||||
|
|||||||
@ -332,7 +332,11 @@ class WebsitePage extends CommonObject
|
|||||||
if ($key == 't.rowid' || $key == 't.fk_website') {
|
if ($key == 't.rowid' || $key == 't.fk_website') {
|
||||||
$sqlwhere[] = $key.'='.$value;
|
$sqlwhere[] = $key.'='.$value;
|
||||||
} elseif ($key == 'lang' || $key == 't.lang') {
|
} elseif ($key == 'lang' || $key == 't.lang') {
|
||||||
$sqlwhere[] = $key." = '".$this->db->escape(substr($value, 0, 2))."'";
|
$listoflang = array();
|
||||||
|
foreach(explode(',', $value) as $tmpvalue) {
|
||||||
|
$listoflang[] = "'".$this->db->escape(substr(str_replace("'", '', $tmpvalue), 0, 2))."'";
|
||||||
|
}
|
||||||
|
$sqlwhere[] = $key." IN (".join(',', $listoflang).")";
|
||||||
} else {
|
} else {
|
||||||
$sqlwhere[] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
|
$sqlwhere[] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user