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

dev #84280 : fix waiting files in cosmogramme

parent d88a257c
Branches
Tags
3 merge requests!3297WIP: Master,!2974Dev#84280 explo lunel export bibliographique zippe et prise en charge du systeme de nommage,!2966Dev#84280 explo lunel export bibliographique zippe et prise en charge du systeme de nommage
Pipeline #5992 passed with stage
in 31 minutes and 55 seconds
......@@ -36,8 +36,10 @@ class Class_TableDescription_CosmoWaitingFiles extends Class_TableDescription {
$statut = function($item) {
$folder = ($parent = $item->getParent()) ? $parent->getName() : '';
if (Class_IntMajAuto::findFirstby(['nom_fichier' => $folder . '/' . $item->getName()]))
if (Class_IntMajAuto::findFirstby(['nom_fichier' => $folder . '/' . $item->getName()])) {
$item->setProgrammed($programmed);
return $this->_view->tagNotice($this->_('Programmé'));
}
if (!$all_prog = Class_IntMajAuto::findAllBy(['where' => 'nom_fichier like "' . $folder . '/[DATE]%"']))
return $this->_view->tagWarning($this->_('Non programmé'));
......
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