Skip to content
Snippets Groups Projects
Commit 5ac53ee6 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

add fix

parent 637e9f6b
Branches
Tags
3 merge requests!896Master,!827Stable,!820Hotline #23391 remove while true
......@@ -48,10 +48,7 @@ class Class_Cosmogramme_Integration_PhaseItemFacets
$this->_getData('pointeur'))) {
if (0 == ($this->_getData('nombre') % 100))
$this->_log->ecrire('<span class="vert">.</span>');
if (0 == ($this->_getData('nombre') % 1000))
$this->_log->ecrire('<span class="vert"><br>' . $this->_getData('nombre') . ' records updated. <br></span>');
$this->_log->ecrire('<span class="vert"> ' . $this->_getData('nombre') . ' records updated </span>');
/* @see #23391 : whenever we fetched ths same record page, end loop */
if ($this->_previous_records && (0 == count(array_filter(array_diff($this->_previous_records, $records)))))
......@@ -60,6 +57,11 @@ class Class_Cosmogramme_Integration_PhaseItemFacets
$this->_previous_records = $records;
foreach ($records as $record) {
$nb_items = (int) Class_Exemplaire::countBy(['id_notice' => $record->getId()]);
if($nb_items > 25)
continue;
if ($this->isTimeOut())
return $this->_resetDbConnection()
->_phase;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment