Fixing style errors.
This commit is contained in:
parent
22ec79d03c
commit
1324f3d375
@ -166,8 +166,8 @@ if (empty($reshook)) {
|
|||||||
$fpartnership = new Partnership($db);
|
$fpartnership = new Partnership($db);
|
||||||
|
|
||||||
$partnershipid = $fpartnership->fetch(0, "", $fk_soc);
|
$partnershipid = $fpartnership->fetch(0, "", $fk_soc);
|
||||||
if($partnershipid > 0){
|
if ($partnershipid > 0) {
|
||||||
setEventMessages($langs->trans('PartnershipAlreadyExist').' : '.$fpartnership->getNomUrl(0,'',1), '', 'errors');
|
setEventMessages($langs->trans('PartnershipAlreadyExist').' : '.$fpartnership->getNomUrl(0, '', 1), '', 'errors');
|
||||||
$action = ($action == 'add') ? 'create' : 'edit';
|
$action = ($action == 'add') ? 'create' : 'edit';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -226,7 +226,6 @@ if (empty($reshook)) {
|
|||||||
$error++;
|
$error++;
|
||||||
} else {
|
} else {
|
||||||
$object->reason_decline_or_cancel = GETPOST('reason_decline_or_cancel', 'restricthtml');
|
$object->reason_decline_or_cancel = GETPOST('reason_decline_or_cancel', 'restricthtml');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
@ -262,7 +261,7 @@ if (empty($reshook)) {
|
|||||||
$trackid = 'partnership'.$object->id;
|
$trackid = 'partnership'.$object->id;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/actions_sendmails.inc.php';
|
||||||
|
|
||||||
if(!empty($id) && !empty(GETPOST('confirm'))){
|
if (!empty($id) && !empty(GETPOST('confirm'))) {
|
||||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$id);
|
header("Location: ".$_SERVER['PHP_SELF']."?id=".$id);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -535,14 +535,13 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
if ($permissiontoadd) {
|
if ($permissiontoadd) {
|
||||||
print dolGetButtonAction($langs->trans('ShowPartnership'), '', 'default', dol_buildpath('/partnership/partnership_card.php', 1).'?id='.$object->id, '', $permissiontoadd);
|
print dolGetButtonAction($langs->trans('ShowPartnership'), '', 'default', dol_buildpath('/partnership/partnership_card.php', 1).'?id='.$object->id, '', $permissiontoadd);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cancel
|
// Cancel
|
||||||
if ($permissiontoadd) {
|
if ($permissiontoadd) {
|
||||||
if ($object->status == $object::STATUS_ACCEPTED) {
|
if ($object->status == $object::STATUS_ACCEPTED) {
|
||||||
print dolGetButtonAction($langs->trans('Cancel'), '', 'default', $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=close&token='.newToken(), '', $permissiontoadd);
|
print dolGetButtonAction($langs->trans('Cancel'), '', 'default', $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=close&token='.newToken(), '', $permissiontoadd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user