Fixing style errors.

This commit is contained in:
stickler-ci 2021-04-03 08:29:04 +00:00
parent 6cac5f2212
commit eb4d8848e2
4 changed files with 11 additions and 17 deletions

View File

@ -80,10 +80,8 @@ include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
if ($action == 'setting') { if ($action == 'setting') {
$value = GETPOST('managed_for', 'alpha'); $value = GETPOST('managed_for', 'alpha');
$res = dolibarr_set_const($db, "PARTNERSHIP_IS_MANAGED_FOR", $value, 'chaine', 0, '', $conf->entity); $res = dolibarr_set_const($db, "PARTNERSHIP_IS_MANAGED_FOR", $value, 'chaine', 0, '', $conf->entity);
} }
if ($action) { if ($action) {

View File

@ -110,8 +110,7 @@ $search_all = GETPOST("search_all", 'alpha');
$search = array(); $search = array();
if ($conf->global->PARTNERSHIP_IS_MANAGED_FOR == 'member') if ($conf->global->PARTNERSHIP_IS_MANAGED_FOR == 'member')
unset($object->fields['fk_soc']); unset($object->fields['fk_soc']);
else else unset($object->fields['fk_member']);
unset($object->fields['fk_member']);
foreach ($object->fields as $key => $val) { foreach ($object->fields as $key => $val) {
if (GETPOST('search_'.$key, 'alpha')) { if (GETPOST('search_'.$key, 'alpha')) {
$search[$key] = GETPOST('search_'.$key, 'alpha'); $search[$key] = GETPOST('search_'.$key, 'alpha');
@ -205,9 +204,7 @@ if (empty($reshook)) {
} else { } else {
setEventMessages($object->error, $object->errors, 'errors'); setEventMessages($object->error, $object->errors, 'errors');
} }
} } elseif ($action == 'confirm_refuse' && $permissiontoadd && !GETPOST('cancel', 'alpha')) {
elseif ($action == 'confirm_refuse' && $permissiontoadd && !GETPOST('cancel', 'alpha')) {
// Close proposal // Close proposal
if (!(GETPOST('reason_decline_or_cancel', 'alpha'))) { if (!(GETPOST('reason_decline_or_cancel', 'alpha'))) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Refuse")), null, 'errors'); setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Refuse")), null, 'errors');

View File

@ -125,8 +125,7 @@ $search_array_options = $extrafields->getOptionalsFromPost($object->table_elemen
if ($conf->global->PARTNERSHIP_IS_MANAGED_FOR == 'member') if ($conf->global->PARTNERSHIP_IS_MANAGED_FOR == 'member')
unset($object->fields['fk_soc']); unset($object->fields['fk_soc']);
else else unset($object->fields['fk_member']);
unset($object->fields['fk_member']);
// Default sort order (if not yet defined by previous GETPOST) // Default sort order (if not yet defined by previous GETPOST)
if (!$sortfield) { if (!$sortfield) {