Merge pull request #122 from guillegiu/master

fix bug #58
This commit is contained in:
Guillermo Giuliana 2018-01-04 01:02:55 -03:00 committed by GitHub
commit e1d4ae7be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -53,7 +53,7 @@ class EditSettingsController extends Controller {
];
foreach($settings as $setting) {
if(Controller::request($setting)) {
if(Controller::request($setting)!==null) {
$settingInstance = Setting::getSetting($setting);
$settingInstance->value = Controller::request($setting);
$settingInstance->store();

View File

@ -66,6 +66,9 @@ class ChangeDepartmentController extends Controller {
$ticket->addEvent($event);
$ticket->department = $department;
$ticket->unread = true;
if(!Controller::getLoggedUser()->sharedDepartmentList->includesId($department->id)) {
$ticket->owner = null;
}
$ticket->store();
Log::createLog('DEPARTMENT_CHANGED', $ticket->ticketNumber);

View File

@ -6,7 +6,7 @@ describe'system/edit-settings' do
result= request('/system/edit-settings', {
"csrf_userid" => $csrf_userid,
"csrf_token" => $csrf_token,
"maintenance-mode" => false,
"maintenance-mode" => 0,
"time-zone" => -3,
"layout" => 'full-width',
"allow-attachments" => 1,