Skip to content

Commit c16db43

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 8eb68d3 + ac9df2f commit c16db43

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

app/Http/Controllers/Assets/AssetsController.php

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -905,26 +905,7 @@ public function auditStore(UploadFileRequest $request, $id)
905905
if ($request->input('update_location') == '1') {
906906
$asset->location_id = $request->input('location_id');
907907
}
908-
909-
if (($asset->model->fieldset)) {
910-
foreach ($asset->model->fieldset->fields as $field) {
911-
if ($field->field_encrypted == '1') {
912-
if (Gate::allows('admin')) {
913-
if (is_array($request->input($field->db_column))) {
914-
$asset->{$field->db_column} = Crypt::encrypt(implode(', ', $request->input($field->db_column)));
915-
} else {
916-
$asset->{$field->db_column} = Crypt::encrypt($request->input($field->db_column));
917-
}
918-
}
919-
} else {
920-
if (is_array($request->input($field->db_column))) {
921-
$asset->{$field->db_column} = implode(', ', $request->input($field->db_column));
922-
} else {
923-
$asset->{$field->db_column} = $request->input($field->db_column);
924-
}
925-
}
926-
}
927-
}
908+
928909

929910
/**
930911
* Invoke Watson Validating to check the asset itself and check to make sure it saved correctly.

0 commit comments

Comments
 (0)