@@ -46,6 +46,7 @@ class CreateController extends Controller {
46
46
private $ title ;
47
47
private $ content ;
48
48
private $ departmentId ;
49
+ private $ projectId ;
49
50
private $ language ;
50
51
private $ ticketNumber ;
51
52
private $ email ;
@@ -102,6 +103,7 @@ public function handler() {
102
103
$ this ->title = Controller::request ('title ' , true );
103
104
$ this ->content = Controller::request ('content ' , true );
104
105
$ this ->departmentId = Controller::request ('departmentId ' );
106
+ $ this ->projectId = Controller::request ('projectId ' );
105
107
$ this ->language = Controller::request ('language ' );
106
108
$ this ->email = Controller::request ('email ' );
107
109
$ this ->name = Controller::request ('name ' );
@@ -173,6 +175,7 @@ private function createNewUser() {
173
175
}
174
176
175
177
private function storeTicket () {
178
+ $ project = Department::getDataStore ($ this ->projectId );
176
179
$ department = Department::getDataStore ($ this ->getCorrectDepartmentId ());
177
180
$ author = $ this ->getAuthor ();
178
181
$ this ->language = $ this ->getCorrectLanguage ();
@@ -190,6 +193,7 @@ private function storeTicket() {
190
193
'content ' => $ this ->replaceWithImagePaths ($ imagePaths , $ this ->content ),
191
194
'language ' => $ this ->language ,
192
195
'department ' => $ department ,
196
+ 'project ' => $ project ,
193
197
'file ' => ($ fileUploader instanceof FileUploader) ? $ fileUploader ->getFileName () : null ,
194
198
'date ' => Date::getCurrentDate (),
195
199
'unread ' => false ,
0 commit comments