|
@@ -478,10 +478,13 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
|
|
|
$foundtagforlines = 1;
|
|
|
try {
|
|
|
$listlines = $odfHandler->setSegment('lines');
|
|
|
- } catch (OdfException $e) {
|
|
|
+ } catch (OdfExceptionSegmentNotFound $e) {
|
|
|
// We may arrive here if tags for lines not present into template
|
|
|
$foundtagforlines = 0;
|
|
|
dol_syslog($e->getMessage(), LOG_INFO);
|
|
|
+ } catch (OdfException $e) {
|
|
|
+ $foundtagforlines = 0;
|
|
|
+ dol_syslog($e->getMessage(), LOG_INFO);
|
|
|
}
|
|
|
if ($foundtagforlines) {
|
|
|
foreach ($object->lines as $line) {
|