Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
0b4a1d9b
Commit
0b4a1d9b
authored
7 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Protection to avoid mass action execution when not required
parent
9127892c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/commande/list.php
+14
-1
14 additions, 1 deletion
htdocs/commande/list.php
htdocs/modulebuilder/template/myobject_list.php
+5
-0
5 additions, 0 deletions
htdocs/modulebuilder/template/myobject_list.php
with
19 additions
and
1 deletion
htdocs/commande/list.php
+
14
−
1
View file @
0b4a1d9b
...
...
@@ -191,6 +191,11 @@ if (empty($reshook))
$toselect
=
''
;
$search_array_options
=
array
();
}
if
(
GETPOST
(
'button_removefilter_x'
,
'alpha'
)
||
GETPOST
(
'button_removefilter.x'
,
'alpha'
)
||
GETPOST
(
'button_removefilter'
,
'alpha'
)
||
GETPOST
(
'button_search_x'
,
'alpha'
)
||
GETPOST
(
'button_search.x'
,
'alpha'
)
||
GETPOST
(
'button_search'
,
'alpha'
))
{
$massaction
=
''
;
// Protection to avoid mass action if we force a new search during a mass action confirmation
}
// Mass actions
$objectclass
=
'Commande'
;
...
...
@@ -776,7 +781,15 @@ if ($resql)
print
$langs
->
trans
(
'ValidateInvoices'
);
print
'</td>'
;
print
'<td>'
;
print
$form
->
selectyesno
(
'valdate_invoices'
,
0
,
1
);
if
(
!
empty
(
$conf
->
stock
->
enabled
)
&&
!
empty
(
$conf
->
global
->
STOCK_CALCULATE_ON_BILL
))
{
print
$form
->
selectyesno
(
'valdate_invoices'
,
0
,
1
,
1
);
print
' ('
.
$langs
->
trans
(
"AutoValidationNotPossibleWhenStockIsDecreasedOnInvoiceValidation"
)
.
')'
;
}
else
{
print
$form
->
selectyesno
(
'valdate_invoices'
,
0
,
1
);
}
print
'</td>'
;
print
'</tr>'
;
print
'</table>'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/modulebuilder/template/myobject_list.php
+
5
−
0
View file @
0b4a1d9b
...
...
@@ -163,6 +163,11 @@ if (empty($reshook))
$toselect
=
''
;
$search_array_options
=
array
();
}
if
(
GETPOST
(
'button_removefilter_x'
,
'alpha'
)
||
GETPOST
(
'button_removefilter.x'
,
'alpha'
)
||
GETPOST
(
'button_removefilter'
,
'alpha'
)
||
GETPOST
(
'button_search_x'
,
'alpha'
)
||
GETPOST
(
'button_search.x'
,
'alpha'
)
||
GETPOST
(
'button_search'
,
'alpha'
))
{
$massaction
=
''
;
// Protection to avoid mass action if we force a new search during a mass action confirmation
}
// Mass actions
$objectclass
=
'MyObject'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment