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

dev #72845 fix errors

parent 3c6b7c38
Branches
Tags
2 merge requests!2661Dev#72845 bdp yonne evolution connecteur cvs,!2653Dev#72845 bdp yonne evolution connecteur cvs
Pipeline #4169 passed with stage
in 33 minutes and 37 seconds
......@@ -26,7 +26,7 @@ class ZendAfi_View_Helper_DigitalResource_Dashboard_Harvest extends ZendAfi_View
public function DigitalResource_Dashboard_Harvest($config) {
$html = [$this->_tag('h3', $this->_('Diagnostic moissonnage'))];
if(!$batch_name = $config->getBatch()) {
if(!$config->getBatch()) {
$html [] = $this->_tagNotice($this->_('Cette ressource ne prend pas en charge le moissonnage')) ;
return implode($html);
}
......@@ -66,6 +66,7 @@ class ZendAfi_View_Helper_DigitalResource_Dashboard_Harvest extends ZendAfi_View
protected function _getBatchHtml($config) {
$batch_name = $config->getBatch();
if(!$batch = Class_Batch::findFirstBy(['type' => $batch_name]))
return implode([$this->_tagWarning($this->_('Le moissonnage n\'est pas programmé')),
$this->view->button((new Class_Entity())
......
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