diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index ea3c130e970..272b64a32a7 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -2919,16 +2919,11 @@ if ($dirins && $action == "update_props_module" && !empty(GETPOST('keydescriptio $propertyToUpdate = 'description'; break; case 'version': - $propertyToUpdate = 'version'; - break; case 'family': - $propertyToUpdate = 'family'; - break; + case 'picto': case 'editor_name': - $propertyToUpdate = 'editor_name'; - break; case 'editor_url': - $propertyToUpdate = 'editor_url'; + $propertyToUpdate = $keydescription; break; default: $error = GETPOST('keydescription'); @@ -3490,7 +3485,7 @@ if ($module == 'initmodule') { print ''; if ($action == 'edit_moduledescription' && GETPOST('keydescription', 'alpha') === 'version') { print ''; - print ''; + print ''; print ''; } else { print $moduleobj->getVersion(); @@ -3525,7 +3520,7 @@ if ($module == 'initmodule') { } } print ''; - print ''; + print ''; print ''; } else { print $moduleobj->family; @@ -3536,8 +3531,15 @@ if ($module == 'initmodule') { print ''; print $langs->trans("Picto"); print ''; - print $moduleobj->picto; - print '   '.img_picto('', $moduleobj->picto, 'class="valignmiddle pictomodule paddingrightonly"'); + if ($action == 'edit_modulepicto' && GETPOST('keydescription', 'alpha') === 'picto') { + print ''; + print ''; + print ''; + } else { + print $moduleobj->picto; + print '   '.img_picto('', $moduleobj->picto, 'class="valignmiddle pictomodule paddingrightonly"'); + print ''.img_edit().''; + } print ''; print ''; @@ -3545,7 +3547,7 @@ if ($module == 'initmodule') { print ''; if ($action == 'edit_moduledescription' && GETPOST('keydescription', 'alpha') === 'editor_name') { print ''; - print ''; + print ''; print ''; } else { print $moduleobj->editor_name; @@ -3558,7 +3560,7 @@ if ($module == 'initmodule') { print ''; if ($action == 'edit_moduledescription' && GETPOST('keydescription', 'alpha') === 'editor_url') { print ''; - print ''; + print ''; print ''; } else { if (!empty($moduleobj->editor_url)) {