mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
Adapted DMSLib upload method to be accept field name from Controller
The fieldname represents the HTML uploadfile input name attribute, which is given by the developer in the VIEW. Signed-off-by: cris-technikum <[email protected]>
This commit is contained in:
@@ -223,7 +223,7 @@ class CreateAnrechnung extends Auth_Controller
|
||||
);
|
||||
|
||||
// Upload document
|
||||
return $this->dmslib->upload($dms, array('pdf'));
|
||||
return $this->dmslib->upload($dms, 'uploadfile', array('pdf'));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -316,6 +316,6 @@ class requestAnrechnung extends Auth_Controller
|
||||
);
|
||||
|
||||
// Upload document
|
||||
return $this->dmslib->upload($dms, array('pdf'));
|
||||
return $this->dmslib->upload($dms, 'uploadfile', array('pdf'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user