";
+ $db->free($resql);
}
else
{
@@ -182,5 +179,4 @@ else
llxFooter();
$db->close();
-
-?>
+?>
\ No newline at end of file
diff --git a/htdocs/compta/facture/prelevement.php b/htdocs/compta/facture/prelevement.php
index f86c0603cd6..48b08946469 100644
--- a/htdocs/compta/facture/prelevement.php
+++ b/htdocs/compta/facture/prelevement.php
@@ -211,7 +211,6 @@ if ($object->id > 0)
}
print ')';
}
- // FIXME $facidnext not defined
/*
if ($facidnext > 0)
{
diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php
index 65d485d129c..f045fb30cc3 100644
--- a/htdocs/contrat/fiche.php
+++ b/htdocs/contrat/fiche.php
@@ -1088,7 +1088,6 @@ else
}
- $servicepos=(GETPOST('servicepos')?GETPOST('servicepos'):1); // FIXME : not used ?
$colorb='666666';
$arrayothercontracts=$object->getListOfContracts('others');
diff --git a/htdocs/core/boxes/box_activity.php b/htdocs/core/boxes/box_activity.php
index 8f191415deb..bddeb4b957e 100644
--- a/htdocs/core/boxes/box_activity.php
+++ b/htdocs/core/boxes/box_activity.php
@@ -56,7 +56,7 @@ class box_activity extends ModeleBoxes
// FIXME: Use a cache to save data because this slow down too much main home page. This box slow down too seriously software.
// FIXME: Removed number_format (not compatible with all languages)
// FIXME: Pb into some status
- $this->enabled=$conf->global->MAIN_FEATURES_LEVEL; // Not enabled by default due to bugs (see previous FIXME)
+ $this->enabled=$conf->global->MAIN_FEATURES_LEVEL; // Not enabled by default due to bugs (see previous comments)
}
/**
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 59a258289f4..8c1c4ac7987 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -138,7 +138,7 @@ class Form
if (empty($typeofdata)) return 'ErrorBadParameter';
// When option to edit inline is activated
- if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE) && ! preg_match('/^select;|datehourpicker/',$typeofdata)) // FIXME add jquery timepicker
+ if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE) && ! preg_match('/^select;|datehourpicker/',$typeofdata)) // TODO add jquery timepicker
{
$ret.=$this->editInPlace($object, $value, $htmlname, $perm, $typeofdata, $editvalue, $extObject, $success);
}
diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php
index 7c0366fb4a0..cb63f012114 100644
--- a/htdocs/core/db/pgsql.class.php
+++ b/htdocs/core/db/pgsql.class.php
@@ -61,7 +61,7 @@ class DoliDBPgsql extends DoliDB
var $lastqueryerror;
var $lasterror;
var $lasterrno;
-
+
var $unescapeslashquot=0; // By default we do not force the unescape of \'. This is used only to process sql with mysql escaped data.
var $standard_conforming_strings=1; // Database has option standard_conforming_strings to on
@@ -211,7 +211,7 @@ class DoliDBPgsql extends DoliDB
// tinyint type conversion
$line=preg_replace('/tinyint\(?[0-9]*\)?/','smallint',$line);
$line=preg_replace('/tinyint/i','smallint',$line);
-
+
// nuke unsigned
$line=preg_replace('/(int\w+|smallint)\s+unsigned/i','\\1',$line);
@@ -234,13 +234,13 @@ class DoliDBPgsql extends DoliDB
$line=preg_replace('/^float/i','numeric',$line);
$line=preg_replace('/(\s*)float/i','\\1numeric',$line);
- //Check tms timestamp field case (in Mysql this field is defautled to now and
+ //Check tms timestamp field case (in Mysql this field is defautled to now and
// on update defaulted by now
$line=preg_replace('/(\s*)tms(\s*)timestamp/i','\\1tms timestamp without time zone DEFAULT now() NOT NULL',$line);
-
+
// nuke ON UPDATE CURRENT_TIMESTAMP
$line=preg_replace('/(\s*)on(\s*)update(\s*)CURRENT_TIMESTAMP/i','\\1',$line);
-
+
// unique index(field1,field2)
if (preg_match('/unique index\s*\((\w+\s*,\s*\w+)\)/i',$line))
{
@@ -468,7 +468,7 @@ class DoliDBPgsql extends DoliDB
{
return '';
}
-
+
/**
* Close database connexion
*
@@ -1254,7 +1254,7 @@ class DoliDBPgsql extends DoliDB
$sql.="(".$field_desc['value'].")";
}
- // FIXME May not work with pgsql. May need to run a second request. If it works, just remove the FIXME tag
+ // TODO May not work with pgsql. May need to run a second request. If it works, just remove the comment
if ($field_desc['null'] == 'not null' || $field_desc['null'] == 'NOT NULL') $sql.=" NOT NULL";
dol_syslog($sql,LOG_DEBUG);
diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php
index dbb3a215d5d..39225d26d6e 100644
--- a/htdocs/exports/class/export.class.php
+++ b/htdocs/exports/class/export.class.php
@@ -220,7 +220,7 @@ class Export
if ($i > 0) $sql.=', ';
else $i++;
-
+
if (strpos($key, ' as ')===false) {
$newfield=$key.' as '.str_replace(array('.', '-'),'_',$key);
} else {
@@ -327,7 +327,7 @@ class Export
*/
function conditionDate($Field, $Value, $Sens)
{
- // FIXME date_format is forbidden, not performant and no portable. Use instead BETWEEN
+ // TODO date_format is forbidden, not performant and not portable. Use instead BETWEEN
if (strlen($Value)==4) $Condition=" date_format(".$Field.",'%Y') ".$Sens." ".$Value;
elseif (strlen($Value)==6) $Condition=" date_format(".$Field.",'%Y%m') ".$Sens." '".$Value."'";
else $Condition=" date_format(".$Field.",'%Y%m%d') ".$Sens." ".$Value;
diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php
index f170b29330a..1cd4d982466 100644
--- a/htdocs/fourn/facture/document.php
+++ b/htdocs/fourn/facture/document.php
@@ -102,7 +102,7 @@ if ($object->id > 0)
if ($action == 'delete')
{
print $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&urlfile='.urlencode($_GET["urlfile"]), $langs->trans('DeleteFile'), $langs->trans('ConfirmDeleteFile'), 'confirm_deletefile', '', 0, 1);
-
+
}
print '
';
@@ -153,7 +153,6 @@ if ($object->id > 0)
}
print ')';
}
- // FIXME $facidnext is not defined
/*
if ($facidnext > 0)
{
diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php
index c3353866b29..864b36c3149 100644
--- a/htdocs/product/photos.php
+++ b/htdocs/product/photos.php
@@ -97,7 +97,7 @@ if ($object->id)
if ($action == 'delete')
{
print $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&file='.$_GET["file"], $langs->trans('DeletePicture'), $langs->trans('ConfirmDeletePicture'), 'confirm_delete', '', 0, 1);
-
+
}
print($mesg);
@@ -162,7 +162,7 @@ if ($object->id)
{
// Affiche formulaire upload
$formfile=new FormFile($db);
- $formfile->form_attach_new_file($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans("AddPhoto"), 1, 0, 1, 50, $object, '', false); // FIXME Regis: disabled for the moment
+ $formfile->form_attach_new_file($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans("AddPhoto"), 1, 0, 1, 50, $object, '', false); // ajax=false for the moment. true may not work.
}
// Affiche photos
diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php
index 0c2b17dcb1a..4b05818a567 100644
--- a/htdocs/user/perms.php
+++ b/htdocs/user/perms.php
@@ -76,7 +76,7 @@ if ($action == 'addrights' && $caneditperms)
{
$edituser = new User($db);
$edituser->fetch($id);
- //$edituser->addrights($rights, $module, '', $entity); // FIXME unused for the moment
+ //$edituser->addrights($rights, $module, '', $entity); // TODO unused for the moment
$edituser->addrights($rights, $module);
// Si on a touche a ses propres droits, on recharge
@@ -92,7 +92,7 @@ if ($action == 'delrights' && $caneditperms)
{
$edituser = new User($db);
$edituser->fetch($id);
- //$edituser->delrights($rights, $module, '', $entity); // FIXME unused for the moment
+ //$edituser->delrights($rights, $module, '', $entity); // TODO unused for the moment
$edituser->delrights($rights, $module);
// Si on a touche a ses propres droits, on recharge
@@ -177,13 +177,16 @@ $sql = "SELECT r.id, r.libelle, r.module";
$sql.= " FROM ".MAIN_DB_PREFIX."rights_def as r,";
$sql.= " ".MAIN_DB_PREFIX."user_rights as ur";
$sql.= " WHERE ur.fk_id = r.id";
-if (! empty($conf->multicompany->enabled)) {
+if (! empty($conf->multicompany->enabled))
+{
if (1==2 && ! empty($conf->multicompany->transverse_mode)) {
- $sql.= " AND r.entity = ".(GETPOST('entity','int')?GETPOST('entity','int'):$conf->entity); // FIXME unused for the moment
+ $sql.= " AND r.entity = ".(GETPOST('entity','int')?GETPOST('entity','int'):$conf->entity); // TODO unused for the moment
} else {
$sql.= " AND r.entity = ".(! empty($fuser->entity) ? $fuser->entity : $conf->entity);
}
-} else {
+}
+else
+{
$sql.= " AND r.entity = ".$conf->entity;
}
$sql.= " AND ur.fk_user = ".$fuser->id;