fixed workorder civil engineering

This commit is contained in:
Luca Haid
2026-01-27 16:09:10 +01:00
parent dc388b07ab
commit 4bfd0eddce
3 changed files with 99 additions and 20 deletions

View File

@@ -79,7 +79,7 @@ class RimoWorkorder extends mfBaseModel {
$fn = 'aha_lageplan_' . $this->id . '_' . time() . '.png';
$file = FileModel::create(['name' => 'AHA Lageplan ' . $this->rimo_name, 'filename' => $fn,
'store_filename' => $fn, 'orig_filename' => 'AHA_Lageplan_' . $this->rimo_name . '.png',
'mimetype' => 'image/png', 'subfolder' => 'aha_maps']);
'mimetype' => 'image/png', 'subfolder' => 'aha_maps', 'create_by' => 1]);
if ($file->save()) {
$dir = MFUPLOAD_FILE_SAVE_PATH . '/aha_maps';
if (!is_dir($dir)) mkdir($dir, 0755, true);