Skip to content

Commit

Permalink
Fix: broken feature with edit in place
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jun 29, 2018
1 parent dab264c commit 2d13b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Expand Up @@ -282,7 +282,7 @@ private function editInPlace($object, $value, $htmlname, $condition, $inputType=
$out='';

// Check parameters
if ($inputType == 'textarea') $value = dol_nl2br($value);
if (preg_match('/^text/',$inputType)) $value = dol_nl2br($value);
else if (preg_match('/^numeric/',$inputType)) $value = price($value);
else if ($inputType == 'day' || $inputType == 'datepicker') $value = dol_print_date($value, 'day');

Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/tpl/notes.tpl.php
Expand Up @@ -71,7 +71,7 @@
elseif ($module == 'product') { $permission=$user->rights->produit->creer;}
//else dol_print_error('','Bad value '.$module.' for param module');

if (! empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) $typeofdata='ckeditor:dolibarr_notes:100%:200::1:12:95%'; // Rem: This var is for all notes, not only thirdparties note.
if (! empty($conf->fckeditor->enabled) && ! empty($conf->global->FCKEDITOR_ENABLE_SOCIETE)) $typeofdata='ckeditor:dolibarr_notes:100%:200::1:12:95%'; // Rem: This var is for all notes, not only thirdparties note.
else $typeofdata='textarea:12:95%';

?>
Expand Down

0 comments on commit 2d13b5b

Please sign in to comment.