2
0
forked from Wavyzz/dolibarr

add new rule

This commit is contained in:
Frédéric FRANCE
2020-05-21 09:21:30 +02:00
parent ccc859ec80
commit ba8cf2b398
21 changed files with 68 additions and 138 deletions

View File

@@ -105,8 +105,7 @@ if ($_POST) {
if (!$features) {
setEventMessages($langs->trans('ErrorFieldsRequired'), null, 'errors');
}
else {
} else {
$reference = trim($reference);
if (empty($reference)) {
$reference = false;
@@ -165,8 +164,7 @@ if ($_POST) {
$db->rollback();
}
}
elseif (!empty($massaction))
} elseif (!empty($massaction))
{
$bulkaction = $massaction;
$error = 0;
@@ -219,8 +217,7 @@ if ($_POST) {
$db->commit();
setEventMessages($langs->trans('RecordSaved'), null, 'mesgs');
}
}
elseif ($valueid > 0) {
} elseif ($valueid > 0) {
if ($prodcomb->fetch($valueid) < 0) {
dol_print_error($db, $langs->trans('ErrorRecordNotFound'));
exit();
@@ -359,8 +356,7 @@ if (!empty($id) || !empty($ref))
if ($object->weight != '')
{
print $object->weight." ".measuringUnitString(0, "weight", $object->weight_units);
}
else {
} else {
print '&nbsp;';
}
print "</td></tr>\n";
@@ -625,8 +621,7 @@ if (!empty($id) || !empty($ref))
<?php
print '</form>';
}
else {
} else {
if ($action === 'delete') {
if ($prodcomb->fetch($valueid) > 0) {
$prodstatic->fetch($prodcomb->fk_product_child);
@@ -797,8 +792,7 @@ if (!empty($id) || !empty($ref))
print '</td>';
print '</tr>';
}
}
else {
} else {
print '<tr><td colspan="8"><span class="opacitymedium">'.$langs->trans("None").'</span></td></tr>';
}
print '</table>';