Merge pull request #9918 from bafbes/abb80041

Fix: To be possibly intercepted : call create, update and delete of the object instead of commonobject
This commit is contained in:
Laurent Destailleur 2018-10-30 14:52:23 +01:00 committed by GitHub
commit 0c77f6c3c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ if ($action == 'add' && ! empty($permissiontoadd))
if (! $error) if (! $error)
{ {
$result=$object->createCommon($user); $result=$object->create($user);
if ($result > 0) if ($result > 0)
{ {
// Creation OK // Creation OK
@ -127,7 +127,7 @@ if ($action == 'update' && ! empty($permissiontoadd))
if (! $error) if (! $error)
{ {
$result=$object->updateCommon($user); $result=$object->update($user);
if ($result > 0) if ($result > 0)
{ {
$action='view'; $action='view';
@ -169,7 +169,7 @@ if ($action == "update_extras" && ! empty($permissiontoadd))
// Action to delete // Action to delete
if ($action == 'confirm_delete' && ! empty($permissiontodelete)) if ($action == 'confirm_delete' && ! empty($permissiontodelete))
{ {
$result=$object->deleteCommon($user); $result=$object->delete($user);
if ($result > 0) if ($result > 0)
{ {
// Delete OK // Delete OK