Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • Libriciel/archivage/asalae-core
1 result
Show changes
Commits on Source (4)
......@@ -118,7 +118,7 @@ abstract class Check
'rar' => [ // RAR 5.50 Copyright (c) 1993-2017 Alexander Roshal 11 Aug 2017
'command' => 'rar -?',
'regex' => '/RAR (\d+\.\d+(?:\.\d)?(?:\.\d)?)/',
'constrain' => '^5.40 || ^7.0',
'constrain' => '^5.40 || ^6.0 || ^7.0',
],
'sf' => [ // siegfried 1.9.1
'command' => 'sf --version',
......
......@@ -49,6 +49,11 @@ class Upload implements ObjectInterface
*/
private $Helper;
/**
* @var bool
*/
private bool $withData = false;
/**
* Initialise la création d'une section de tabs
* @param Helper $helper
......@@ -114,6 +119,9 @@ class Upload implements ObjectInterface
*/
public function data($data): self
{
if (!empty($data)) {
$this->withData = true;
}
$this->table->data($data);
return $this;
}
......@@ -215,7 +223,7 @@ eot
'style' => 'transform : scale(0,0);',
'tabindex' => '-1',
'aria-hidden' => true,
'required' => true,
'required' => !$this->withData,
'templates' => [
'input' => '',
'radioWrapper' => '{{label}}',
......