Finished Line- & Pipework export

This commit is contained in:
Frank Schubert
2022-06-21 14:32:25 +02:00
parent e3438bc96c
commit 43185a914f
3 changed files with 4 additions and 6 deletions

View File

@@ -210,8 +210,8 @@ class LineworkController extends mfBaseController {
$cmd = BASEDIR."/scripts/start_workflow_export.php";
$args = "";
$filter['type'] = "Pipework";
$filter['user_id'] = $this->me->id;
$get['filter']['type'] = "Linework";
$get['filter']['user_id'] = $this->me->id;
foreach($get['filter'] as $key => $value) {
$args .= " ".escapeshellarg("--$key")." ". escapeshellarg($value);
@@ -219,6 +219,7 @@ class LineworkController extends mfBaseController {
$cmd = "$cmd --uid ". escapeshellarg($uid)." $args >/dev/null 2>&1 &";
$this->log->debug($cmd);
exec($cmd);
// return progress