Debug modulebuilder v14
This commit is contained in:
parent
fb0d2cdddc
commit
70af18148b
@ -9671,7 +9671,7 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
|
|||||||
/**
|
/**
|
||||||
* Function dolGetButtonAction
|
* Function dolGetButtonAction
|
||||||
*
|
*
|
||||||
* @param string $label label of button no html : use in alt attribute for accessibility $html is not empty
|
* @param string $label label of button without HTML : use in alt attribute for accessibility $html is not empty
|
||||||
* @param string $html optional : content with html
|
* @param string $html optional : content with html
|
||||||
* @param string $actionType default, delete, danger
|
* @param string $actionType default, delete, danger
|
||||||
* @param string $url the url for link
|
* @param string $url the url for link
|
||||||
@ -9689,8 +9689,9 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
|
|||||||
}
|
}
|
||||||
|
|
||||||
$attr = array(
|
$attr = array(
|
||||||
'class' => $class
|
'class' => $class,
|
||||||
,'href' => empty($url) ? '' : $url
|
'href' => empty($url) ? '' : $url,
|
||||||
|
'title' => $label
|
||||||
);
|
);
|
||||||
|
|
||||||
if (empty($html)) {
|
if (empty($html)) {
|
||||||
|
|||||||
@ -450,6 +450,8 @@ CREATE TABLE llx_partnership(
|
|||||||
model_pdf varchar(255)
|
model_pdf varchar(255)
|
||||||
) ENGINE=innodb;
|
) ENGINE=innodb;
|
||||||
|
|
||||||
|
ALTER TABLE llx_partnership ADD COLUMN last_check_backlink datetime NULL;
|
||||||
|
|
||||||
ALTER TABLE llx_partnership ADD INDEX idx_partnership_rowid (rowid);
|
ALTER TABLE llx_partnership ADD INDEX idx_partnership_rowid (rowid);
|
||||||
ALTER TABLE llx_partnership ADD INDEX idx_partnership_ref (ref);
|
ALTER TABLE llx_partnership ADD INDEX idx_partnership_ref (ref);
|
||||||
ALTER TABLE llx_partnership ADD INDEX idx_partnership_fk_soc (fk_soc);
|
ALTER TABLE llx_partnership ADD INDEX idx_partnership_fk_soc (fk_soc);
|
||||||
|
|||||||
@ -505,8 +505,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
print dolGetButtonAction($langs->trans('Validate'), '', 'default', $_SERVER['PHP_SELF'].'?id='.$object->id.'&action=confirm_validate&confirm=yes', '', $permissiontoadd);
|
print dolGetButtonAction($langs->trans('Validate'), '', 'default', $_SERVER['PHP_SELF'].'?id='.$object->id.'&action=confirm_validate&confirm=yes', '', $permissiontoadd);
|
||||||
} else {
|
} else {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
//print dolGetButtonAction($langs->trans('Validate'), '', 'default', $_SERVER['PHP_SELF'].'?id='.$object->id.'&action=confirm_validate&confirm=yes', '', 0);
|
print dolGetButtonAction($langs->trans("ErrorAddAtLeastOneLineFirst"), $langs->trans("Validate"), 'default', '#', '', 0);
|
||||||
print '<a class="butActionRefused" href="" title="'.dol_escape_htmltag($langs->trans("ErrorAddAtLeastOneLineFirst")).'">'.$langs->trans("Validate").'</a>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -639,8 +639,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
print dolGetButtonAction($langs->trans('Validate'), '', 'default', $_SERVER['PHP_SELF'].'?id='.$object->id.'&action=confirm_accept&confirm=yes', '', $permissiontoadd);
|
print dolGetButtonAction($langs->trans('Validate'), '', 'default', $_SERVER['PHP_SELF'].'?id='.$object->id.'&action=confirm_accept&confirm=yes', '', $permissiontoadd);
|
||||||
} else {
|
} else {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
//print dolGetButtonAction($langs->trans('Accept'), '', 'default', $_SERVER['PHP_SELF'].'?id='.$object->id.'&action=confirm_accept&confirm=yes', '', 0);
|
print dolGetButtonAction($langs->trans("ErrorAddAtLeastOneLineFirst"), $langs->trans("Validate"), 'default', '#', '', 0);
|
||||||
print '<a class="butActionRefused" href="" title="'.$langs->trans("ErrorAddAtLeastOneLineFirst").'">'.$langs->trans("Validate").'</a>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -657,7 +656,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
// Refuse
|
// Refuse
|
||||||
if ($permissiontoadd) {
|
if ($permissiontoadd) {
|
||||||
if ($object->status != $object::STATUS_CANCELED && $object->status != $object::STATUS_REFUSED) {
|
if ($object->status != $object::STATUS_CANCELED && $object->status != $object::STATUS_REFUSED) {
|
||||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=refuse&token='.newToken().'">'.$langs->trans("Refuse").'</a>'."\n";
|
print dolGetButtonAction($langs->trans('Refuse'), '', 'default', $_SERVER['PHP_SELF'].'?id='.$object->id.'&action=refuse&token='.newToken(), '', $permissiontoadd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user