-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Add Massactions Validate/Cancel/RegeneratePDF/MergePDF/EditStartDate/EditeEndDate on Mo List #33548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Massactions Validate/Cancel/RegeneratePDF/MergePDF/EditStartDate/EditeEndDate on Mo List #33548
Conversation
htdocs/mrp/mo_list.php
Outdated
@@ -207,6 +217,76 @@ | |||
$objectlabel = 'Mo'; | |||
$uploaddir = $conf->mrp->dir_output; | |||
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php'; | |||
$objMo = new Mo($db); | |||
|
|||
if($action == 'confirm_cancel') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should install the precommit github hook so this king of CI error are automatically fixed.
@eldy 👍 |
htdocs/mrp/mo_list.php
Outdated
@@ -207,6 +217,74 @@ | |||
$objectlabel = 'Mo'; | |||
$uploaddir = $conf->mrp->dir_output; | |||
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php'; | |||
$objMo = new Mo($db); | |||
|
|||
if ($action == 'confirm_cancel' && $confirm == 'yes') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a CI error here becasue you executed an action without doing any test on permission.
Try to replace with
if ($action == 'confirm_cancel' && $confirm == 'yes' && $permissiontoadd
Add Massactions to the standard OF list: