diff --git a/htdocs/core/ajax/loadinplace.php b/htdocs/core/ajax/loadinplace.php index 0b43b1871da..453fd7c8b3e 100644 --- a/htdocs/core/ajax/loadinplace.php +++ b/htdocs/core/ajax/loadinplace.php @@ -60,7 +60,8 @@ if((isset($_GET['field']) && ! empty($_GET['field'])) $subelement = $regs[2]; } - if ($element == 'fichinter') $element = 'ficheinter'; + if ($element == 'propal') $element = 'propale'; + else if ($element == 'fichinter') $element = 'ficheinter'; if ($user->rights->$element->lire || $user->rights->$element->read || $user->rights->$element->$subelement->lire || $user->rights->$element->$subelement->read) diff --git a/htdocs/core/ajax/saveinplace.php b/htdocs/core/ajax/saveinplace.php index 1ac227482a9..e1462e6dd1a 100644 --- a/htdocs/core/ajax/saveinplace.php +++ b/htdocs/core/ajax/saveinplace.php @@ -66,7 +66,8 @@ if((isset($_POST['field']) && ! empty($_POST['field'])) $subelement = $regs[2]; } - if ($element == 'fichinter') $element = 'ficheinter'; + if ($element == 'propal') $element = 'propale'; + else if ($element == 'fichinter') $element = 'ficheinter'; if ($user->rights->$element->creer || $user->rights->$element->write || $user->rights->$element->$subelement->creer || $user->rights->$element->$subelement->write)