mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
XML für Dokumentenvorlagen werden automatisch erweitert um die
Information ob das Dokument anschließend signiert wird.
This commit is contained in:
+10
-22
@@ -319,22 +319,14 @@ if (!isset($_REQUEST["archive"]))
|
||||
|
||||
$dokument->setFilename($filename);
|
||||
|
||||
if (!$dokument->create($output))
|
||||
die($dokument->errormsg);
|
||||
|
||||
if ($sign === true)
|
||||
{
|
||||
if ($dokument->sign($user))
|
||||
{
|
||||
$dokument->output();
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $dokument->errormsg;
|
||||
}
|
||||
$dokument->sign($user);
|
||||
}
|
||||
else
|
||||
|
||||
if ($dokument->create($output))
|
||||
$dokument->output();
|
||||
|
||||
$dokument->close();
|
||||
}
|
||||
}
|
||||
@@ -413,18 +405,14 @@ else
|
||||
|
||||
if ($sign === true)
|
||||
{
|
||||
if ($dokument->sign($user))
|
||||
{
|
||||
$doc = $dokument->output(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$error = true;
|
||||
$errormsg = $dokument->errormsg;
|
||||
}
|
||||
$dokument->sign($user);
|
||||
}
|
||||
else
|
||||
|
||||
if ($dokument->create($output))
|
||||
$doc = $dokument->output(false);
|
||||
else
|
||||
$error = true;
|
||||
|
||||
$dokument->close();
|
||||
|
||||
if(!$error)
|
||||
|
||||
Reference in New Issue
Block a user