2
0
forked from Wavyzz/dolibarr

Endpoint for API /partnershipapi and /recruitment has been renamed into

/partnerships and /recruitments to follow name conventions.
This commit is contained in:
Laurent Destailleur
2023-10-31 13:37:15 +01:00
parent ca145ef912
commit edaab57f2e
4 changed files with 4 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ Following changes may create regressions for some external modules, but were nec
an invoice from a shipment is validated (and if your process is to make invoice on shipment and not on order), because this setup has changed. an invoice from a shipment is validated (and if your process is to make invoice on shipment and not on order), because this setup has changed.
* It was possible to use a variable $soc or $right inside a php code condition of some extrafields properties, this is no more true (this 2 variables are no more global variables). * It was possible to use a variable $soc or $right inside a php code condition of some extrafields properties, this is no more true (this 2 variables are no more global variables).
* New hook files of modules actions_mymodule.class.php should "extends CommonHookActions" * New hook files of modules actions_mymodule.class.php should "extends CommonHookActions"
* Endpoint for API /partnershipapi has been renamed into /partnerships to follow conventions * Endpoint for API /partnershipapi and /recruitment has been renamed into /partnerships and /recruitments to follow name conventions.
***** ChangeLog for 18.0.2 compared to 18.0.1 ***** ***** ChangeLog for 18.0.2 compared to 18.0.1 *****

View File

@@ -2661,7 +2661,7 @@ function getModuleDirForApiClass($moduleobject)
$moduledirforclass = 'mrp'; $moduledirforclass = 'mrp';
} elseif ($moduleobject == 'accounting') { } elseif ($moduleobject == 'accounting') {
$moduledirforclass = 'accountancy'; $moduledirforclass = 'accountancy';
} elseif (in_array($moduleobject, array('products', 'expensereports', 'users', 'tickets', 'boms', 'receptions', 'partnerships'))) { } elseif (in_array($moduleobject, array('products', 'expensereports', 'users', 'tickets', 'boms', 'receptions', 'partnerships', 'recruitments'))) {
$moduledirforclass = preg_replace('/s$/', '', $moduleobject); $moduledirforclass = preg_replace('/s$/', '', $moduleobject);
} }

View File

@@ -4160,6 +4160,7 @@ function migrate_delete_old_files($db, $langs, $conf)
'/user/class/api_user.class.php', '/user/class/api_user.class.php',
'/partnership/class/api_partnership.class.php', '/partnership/class/api_partnership.class.php',
'/product/class/api_product.class.php', '/product/class/api_product.class.php',
'/recruitment/class/api_recruitment.class.php',
'/societe/class/api_contact.class.php', '/societe/class/api_contact.class.php',
'/societe/class/api_thirdparty.class.php', '/societe/class/api_thirdparty.class.php',
'/support/online.php', '/support/online.php',

View File

@@ -34,7 +34,7 @@ dol_include_once('/recruitment/class/recruitmentcandidature.class.php');
* @access protected * @access protected
* @class DolibarrApiAccess {@requires user,external} * @class DolibarrApiAccess {@requires user,external}
*/ */
class Recruitment extends DolibarrApi class Recruitments extends DolibarrApi
{ {
/** /**
* @var RecruitmentJobPosition $jobposition {@type RecruitmentJobPosition} * @var RecruitmentJobPosition $jobposition {@type RecruitmentJobPosition}