Skip to content
Snippets Groups Projects
Verified Commit ea09b587 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix pb with test

parent 1a0bcf43
No related branches found
No related tags found
No related merge requests found
...@@ -71,9 +71,7 @@ while ($GLOBALS['state'] <> "END") { ...@@ -71,9 +71,7 @@ while ($GLOBALS['state'] <> "END") {
/**********************************************************************/ /**********************************************************************/
case 'SELECT_RES' : case 'SELECT_RES' :
if (isset($GLOBALS['dateToPurgeDEL']) && !empty($GLOBALS['dateToPurgeDEL'])) { if (isset($GLOBALS['dateToPurgeDEL']) && !empty($GLOBALS['dateToPurgeDEL'])) {
//$where_clause = "STATUS = 'DEL' and creation_date <= '" . $GLOBALS['dateToPurgeDEL'] . "'"; $where_clause = "STATUS = 'DEL' and creation_date <= '" . $GLOBALS['dateToPurgeDEL'] . "'";
// ONLY FOR TEST
$where_clause = "creation_date <= '" . $GLOBALS['dateToPurgeDEL'] . "'";
if ($GLOBALS['resAlreadyDone']) { if ($GLOBALS['resAlreadyDone']) {
echo 'attach turn' . PHP_EOL; echo 'attach turn' . PHP_EOL;
//SECOND SELECT THE ATTACH IN DEL STATUS //SECOND SELECT THE ATTACH IN DEL STATUS
...@@ -92,7 +90,7 @@ while ($GLOBALS['state'] <> "END") { ...@@ -92,7 +90,7 @@ while ($GLOBALS['state'] <> "END") {
$GLOBALS['adrTable'] = 'adr_letterbox'; $GLOBALS['adrTable'] = 'adr_letterbox';
$GLOBALS['resAlreadyDone'] = true; $GLOBALS['resAlreadyDone'] = true;
} }
if(!$GLOBALS['resAlreadyDone'] && !$GLOBALS['attachAlreadyDone']) { if (!$GLOBALS['resAlreadyDone'] && !$GLOBALS['attachAlreadyDone']) {
echo 'resAlreadyDone and attachAlreadyDone' . PHP_EOL; echo 'resAlreadyDone and attachAlreadyDone' . PHP_EOL;
$state = 'SELECT_RES'; $state = 'SELECT_RES';
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment