Commit eb30b1c6 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #17108 TIME 2:00 auto resize visa workflow text in summary sheet to fit cell width

parent 26aba070
......@@ -710,7 +710,7 @@ class ActionMethodController
if (!empty($listInstances[0])) {
$listInstances = $listInstances[0];
$set = ['process_date' => 'CURRENT_TIMESTAMP', 'process_comment' => _HAS_INTERRUPTED_WORKFLOW . ' (' . _VIA_ACTION . ' ' . $args['action']['label_action'] . ')'];
$set = ['process_date' => 'CURRENT_TIMESTAMP', 'process_comment' => _HAS_INTERRUPTED_WORKFLOW . ' (' . _VIA_ACTION . ' "' . $args['action']['label_action'] . '")'];
if ($listInstances['item_id'] != $GLOBALS['id']) {
$set['delegate'] = $GLOBALS['id'];
}
......@@ -731,7 +731,7 @@ class ActionMethodController
ListInstanceModel::update([
'set' => [
'process_date' => 'CURRENT_TIMESTAMP',
'process_comment' => _INTERRUPTED_WORKFLOW . ' (' . _VIA_ACTION . ' ' . $args['action']['label_action'] . ')'
'process_comment' => _INTERRUPTED_WORKFLOW . ' (' . _VIA_ACTION . ' "' . $args['action']['label_action'] . '")'
],
'where' => ['res_id = ?', 'difflist_type = ?', 'process_date is null'],
'data' => [$args['resId'], 'VISA_CIRCUIT']
......
......@@ -778,7 +778,7 @@ class SummarySheetController
$pdf->Cell($specialWidth * 3, 20, _USERS, 1, 0, 'L', false);
$pdf->Cell($specialWidth, 20, _ACTION_DATE, 1, 1, 'L', false);
foreach ($users as $keyUser => $user) {
$pdf->Cell($specialWidth * 3, 20, $keyUser + 1 . ". {$user['user']}", 1, 0, 'L', false);
$pdf->MultiCell($specialWidth * 3, 20, $keyUser + 1 . ". {$user['user']}", 1, 'L', false, 0,'', '', true, 0, false, true, 20, 'M', true);
$pdf->Cell($specialWidth, 20, $user['date'], 1, 1, 'L', false);
}
}
......
Supports Markdown
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