Skip to content

Commit

Permalink
Merge branch 'develop' of [email protected]:Dolibarr/dolibarr.git into
Browse files Browse the repository at this point in the history
develop
  • Loading branch information
eldy committed Nov 21, 2024
2 parents 9a1ec8f + 2e90ba0 commit 7b2d0bc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions htdocs/fichinter/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@
$res = $soc->fetch($socid);
}

if (GETPOST('origin') && GETPOSTINT('originid')) {
if (GETPOST('origin', 'alphanohtml') && GETPOSTINT('originid')) {
// Parse element/subelement (ex: project_task)
$regs = array();
$element = $subelement = GETPOST('origin', 'alphanohtml');
Expand Down Expand Up @@ -1076,6 +1076,7 @@
if (!empty($origin) && !empty($originid) && is_object($objectsrc)) {
$newclassname = $classname;
if ($newclassname == 'Propal') {
$langs->load('propal');
$newclassname = 'CommercialProposal';
}
print '<tr><td>'.$langs->trans($newclassname).'</td><td colspan="2">'.$objectsrc->getNomUrl(1).'</td></tr>';
Expand Down Expand Up @@ -1119,7 +1120,7 @@
print $form->buttonsSaveCancel("CreateDraftIntervention");

// Show origin lines
if (!empty($origin) && !empty($originid) && is_object($objectsrc)) {
if (!empty($origin) && !empty($originid) && is_object($objectsrc) && !getDolGlobalInt('FICHINTER_DISABLE_DETAILS')) {
$title = $langs->trans('Services');
print load_fiche_titre($title);

Expand Down
2 changes: 1 addition & 1 deletion htdocs/fichinter/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@

print '</tr>'."\n";

$total += $obj->duree;
$total += (isset($obj->duree) ? $obj->duree : 0);
}
$i++;
}
Expand Down
7 changes: 4 additions & 3 deletions htdocs/recruitment/class/recruitmentcandidature.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,22 @@
*/

/**
* \file class/recruitmentcandidature.class.php
* \file recruitment/class/recruitmentcandidature.class.php
* \ingroup recruitment
* \brief This file is a CRUD class file for RecruitmentCandidature (Create/Read/Update/Delete)
*/

// Put here all includes required by your class file
require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
//require_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php';
//require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/commonpeople.class.php';

/**
* Class for RecruitmentCandidature
*/
class RecruitmentCandidature extends CommonObject
{
use CommonPeople;

/**
* @var string ID of module.
*/
Expand Down
2 changes: 1 addition & 1 deletion htdocs/recruitment/recruitmentcandidature_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@

// Part to create
if ($action == 'create') {
print load_fiche_titre($langs->trans("NewObject", $langs->transnoentitiesnoconv("RecruitmentCandidature")), '', 'object_'.$object->picto);
print load_fiche_titre($title, '', 'object_'.$object->picto);

print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
print '<input type="hidden" name="token" value="'.newToken().'">';
Expand Down

0 comments on commit 7b2d0bc

Please sign in to comment.