fix travis recommendations
This commit is contained in:
parent
8b7c260180
commit
75b55ac5d6
@ -177,7 +177,7 @@ function _printOnOff($confkey, $title = false, $desc = '')
|
|||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function _printInputFormPart($confkey, $title = false, $desc ='', $metas = array(), $type='input', $help = false)
|
function _printInputFormPart($confkey, $title = false, $desc = '', $metas = array(), $type = 'input', $help = false)
|
||||||
{
|
{
|
||||||
global $var, $bc, $langs, $conf, $db, $inputCount;
|
global $var, $bc, $langs, $conf, $db, $inputCount;
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|||||||
@ -308,7 +308,7 @@ if (empty($reshook))
|
|||||||
dol_print_error($db, $object->error);
|
dol_print_error($db, $object->error);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ($action == 'setretainedwarrantyconditions' && $user->rights->facture->creer)
|
elseif ($action == 'setretainedwarrantyconditions' && $user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
$object->retained_warranty_fk_cond_reglement = 0; // To clean property
|
$object->retained_warranty_fk_cond_reglement = 0; // To clean property
|
||||||
@ -323,7 +323,7 @@ if (empty($reshook))
|
|||||||
if ($result < 0) dol_print_error($db, $object->error);
|
if ($result < 0) dol_print_error($db, $object->error);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ($action == 'setretainedwarranty' && $user->rights->facture->creer)
|
elseif ($action == 'setretainedwarranty' && $user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
$result = $object->setRetainedWarranty(GETPOST('retained_warranty', 'float'));
|
$result = $object->setRetainedWarranty(GETPOST('retained_warranty', 'float'));
|
||||||
@ -331,7 +331,7 @@ if (empty($reshook))
|
|||||||
dol_print_error($db, $object->error);
|
dol_print_error($db, $object->error);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ($action == 'setretainedwarrantydatelimit' && $user->rights->facture->creer)
|
elseif ($action == 'setretainedwarrantydatelimit' && $user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
$object->fetch($id);
|
$object->fetch($id);
|
||||||
$result = $object->setRetainedWarrantyDateLimit(GETPOST('retained_warranty_date_limit', 'float'));
|
$result = $object->setRetainedWarrantyDateLimit(GETPOST('retained_warranty_date_limit', 'float'));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user