forked from Wavyzz/dolibarr
Fix: compatibility with edit in place
Qual: use generic function and remove unused Todo: Type of product combobox is not compatible with edit in place
This commit is contained in:
@@ -62,6 +62,7 @@ if((isset($_GET['field']) && ! empty($_GET['field']))
|
||||
|
||||
if ($element == 'propal') $element = 'propale';
|
||||
else if ($element == 'fichinter') $element = 'ficheinter';
|
||||
else if ($element == 'product') $element = 'produit';
|
||||
else if ($element == 'order_supplier') {
|
||||
$element = 'fournisseur';
|
||||
$subelement = 'commande';
|
||||
|
||||
@@ -69,6 +69,7 @@ if((isset($_POST['field']) && ! empty($_POST['field']))
|
||||
|
||||
if ($element == 'propal') $element = 'propale';
|
||||
else if ($element == 'fichinter') $element = 'ficheinter';
|
||||
else if ($element == 'product') $element = 'produit';
|
||||
else if ($element == 'order_supplier') {
|
||||
$element = 'fournisseur';
|
||||
$subelement = 'commande';
|
||||
|
||||
@@ -80,8 +80,9 @@ class Form
|
||||
global $conf,$langs;
|
||||
|
||||
$ret='';
|
||||
|
||||
if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE))
|
||||
|
||||
// TODO change for compatibility
|
||||
if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE) && ! preg_match('/^select;/',$typeofdata))
|
||||
{
|
||||
if ($perm)
|
||||
{
|
||||
@@ -128,7 +129,8 @@ class Form
|
||||
$ret='';
|
||||
|
||||
// When option to edit inline is activated
|
||||
if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE))
|
||||
// TODO change for compatibility
|
||||
if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE) && ! preg_match('/^select;/',$typeofdata))
|
||||
{
|
||||
$ret.=$this->editInPlace($object, $value, $htmlname, $perm, $typeofdata, $editvalue, $extObject, $success);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user