Fixing style errors.
This commit is contained in:
parent
4fb125703a
commit
48c4ddf347
@ -212,28 +212,23 @@ if (empty($reshook)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If massaction is close
|
// If massaction is close
|
||||||
if ($massaction == 'classifyclose')
|
if ($massaction == 'classifyclose') {
|
||||||
{
|
|
||||||
$error=0;
|
$error=0;
|
||||||
$selectids = GETPOST('toselect', 'array');
|
$selectids = GETPOST('toselect', 'array');
|
||||||
foreach ($selectids as $selectid)
|
foreach ($selectids as $selectid) {
|
||||||
{
|
// $object->fetch($selectid);
|
||||||
// $object->fetch($selectid);
|
|
||||||
$object->fetch($selectid);
|
$object->fetch($selectid);
|
||||||
$result = $object->setClosed();
|
$result = $object->setClosed();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$massaction = $action = 'classifyclose';
|
$massaction = $action = 'classifyclose';
|
||||||
|
|
||||||
if ($result < 0)
|
if ($result < 0) {
|
||||||
{
|
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!$error)
|
if (!$error) {
|
||||||
{
|
|
||||||
$db->commit();
|
$db->commit();
|
||||||
|
|
||||||
setEventMessage($langs->trans("Close Done"));
|
setEventMessage($langs->trans("Close Done"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user