mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-25 03:43:33 +01:00
Allow customizing the Mailbox fillable fields by module developers
This commit is contained in:
parent
d1e5604e79
commit
9b5e4acda0
@ -71,6 +71,7 @@ class MailboxesController extends Controller
|
||||
}
|
||||
|
||||
$mailbox = new Mailbox();
|
||||
$mailbox->fillable(array_merge($mailbox->getFillable(), \Eventy::filter('mailbox:fillable_fields', [])));
|
||||
$mailbox->fill($request->all());
|
||||
$mailbox->save();
|
||||
|
||||
@ -135,6 +136,7 @@ class MailboxesController extends Controller
|
||||
->withInput();
|
||||
}
|
||||
|
||||
$mailbox->fillable(array_merge($mailbox->getFillable(), \Eventy::filter('mailbox:fillable_fields', [])));
|
||||
$mailbox->fill($request->all());
|
||||
|
||||
$mailbox->save();
|
||||
@ -212,6 +214,7 @@ class MailboxesController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$mailbox->fillable(array_merge($mailbox->getFillable(), \Eventy::filter('mailbox:fillable_fields', [])));
|
||||
$mailbox->fill($request->all());
|
||||
$mailbox->save();
|
||||
|
||||
@ -256,6 +259,7 @@ class MailboxesController extends Controller
|
||||
->withInput();
|
||||
}
|
||||
|
||||
$mailbox->fillable(array_merge($mailbox->getFillable(), \Eventy::filter('mailbox:fillable_fields', [])));
|
||||
$mailbox->fill($request->all());
|
||||
$mailbox->save();
|
||||
|
||||
@ -377,6 +381,7 @@ class MailboxesController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$mailbox->fillable(array_merge($mailbox->getFillable(), \Eventy::filter('mailbox:fillable_fields', [])));
|
||||
$mailbox->fill($request->all());
|
||||
|
||||
$mailbox->save();
|
||||
|
Loading…
Reference in New Issue
Block a user