This commit is contained in:
Frédéric FRANCE 2019-12-11 20:33:58 +01:00
parent b59d93c8d7
commit c98ab917dd
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
7 changed files with 61 additions and 69 deletions

View File

@ -87,12 +87,9 @@ if ($action != 'create' && $action != 'edit')
}
/* ************************************************************************** */
/* */
/* Creation of an optional field
/* */
/* ************************************************************************** */
/*
* Creation of an optional field
*/
if ($action == 'create')
{
print '<br><div id="newattrib"></div>';
@ -101,11 +98,9 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
}
/* ************************************************************************** */
/* */
/* Edition of an optional field */
/* */
/* ************************************************************************** */
/*
* Edition of an optional field
*/
if ($action == 'edit' && ! empty($attrname))
{
print "<br>";

View File

@ -587,8 +587,8 @@ if (!empty($conf->global->SHIPPABLE_ORDER_ICON_IN_LIST)) {
print '</a></td>';
print '</tr>';
/* Seems to be not so used. So kept hidden for the moment to avoid dangerous options inflation.
/*
// Seems to be not so used. So kept hidden for the moment to avoid dangerous options inflation.
// Ask for payment bank during order
if ($conf->banque->enabled)
{

View File

@ -132,24 +132,21 @@ foreach ($modulesdir as $dir)
$classname = ucfirst($classname);
require_once $dir_part.$file_searched;
if (class_exists($classname))
{
dol_syslog("Found API classname=".$classname);
$api->r->addAPIClass($classname,'');
// if (class_exists($classname))
// {
// dol_syslog("Found API classname=".$classname);
// $api->r->addAPIClass($classname,'');
// require_once DOL_DOCUMENT_ROOT.'/includes/restler/framework/Luracast/Restler/Routes.php';
// $tmpclass = new ReflectionClass($classname);
// try {
// $classMetadata = CommentParser::parse($tmpclass->getDocComment());
// } catch (Exception $e) {
// throw new RestException(500, "Error while parsing comments of `$classname` class. " . $e->getMessage());
// }
/*
require_once DOL_DOCUMENT_ROOT.'/includes/restler/framework/Luracast/Restler/Routes.php';
$tmpclass = new ReflectionClass($classname);
try {
$classMetadata = CommentParser::parse($tmpclass->getDocComment());
} catch (Exception $e) {
throw new RestException(500, "Error while parsing comments of `$classname` class. " . $e->getMessage());
}*/
//$listofapis[]=array('classname'=>$classname, 'fullpath'=>$file_searched);
/* }
// //$listofapis[]=array('classname'=>$classname, 'fullpath'=>$file_searched);
// }
}*/
}
}
@ -160,7 +157,7 @@ foreach ($modulesdir as $dir)
}
//var_dump($listofapis);
$listofapis = Routes::toArray(); // TODO api for "status" is lost here
$listofapis = Routes::toArray(); // @todo api for "status" is lost here
//var_dump($listofapis);

View File

@ -85,11 +85,11 @@ if ($action != 'create' && $action != 'edit')
}
/* ************************************************************************** */
/* */
/* Creation of an optional field */
/* */
/* ************************************************************************** */
/*
*
* Creation of an optional field
*
*/
if ($action == 'create')
{
@ -99,11 +99,11 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
}
/* ************************************************************************** */
/* */
/* Edition of an optional field */
/* */
/* ************************************************************************** */
/*
*
* Edition of an optional field
*
*/
if ($action == 'edit' && ! empty($attrname))
{
$langs->load("members");

View File

@ -86,11 +86,11 @@ if ($action != 'create' && $action != 'edit')
}
/* ************************************************************************** */
/* */
/* Creation of an optional field */
/* */
/* ************************************************************************** */
/*
*
* Creation of an optional field
*
*/
if ($action == 'create')
{
@ -100,11 +100,11 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
}
/* ************************************************************************** */
/* */
/* Edition of an optional field */
/* */
/* ************************************************************************** */
/*
*
* Edition of an optional field
*
*/
if ($action == 'edit' && ! empty($attrname))
{
$langs->load("members");

View File

@ -86,11 +86,11 @@ if ($action != 'create' && $action != 'edit')
}
/* ************************************************************************** */
/* */
/* Creation d'un champ optionnel
/* */
/* ************************************************************************** */
/*
*
* Creation d'un champ optionnel
*
*/
if ($action == 'create')
{
@ -100,11 +100,11 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
}
/* ************************************************************************** */
/* */
/* Edition d'un champ optionnel */
/* */
/* ************************************************************************** */
/*
*
* Edition d'un champ optionnel
*
*/
if ($action == 'edit' && ! empty($attrname))
{
print "<br>";

View File

@ -86,11 +86,11 @@ if ($action != 'create' && $action != 'edit')
}
/* ************************************************************************** */
/* */
/* Creation d'un champ optionnel
/* */
/* ************************************************************************** */
/*
*
* Creation d'un champ optionnel
*
*/
if ($action == 'create')
{
@ -100,11 +100,11 @@ if ($action == 'create')
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
}
/* ************************************************************************** */
/* */
/* Edition d'un champ optionnel */
/* */
/* ************************************************************************** */
/*
*
* Edition d'un champ optionnel
*
*/
if ($action == 'edit' && ! empty($attrname))
{
print "<br>";