A free open source IT asset/license management system
Merge branch 'develop' into ignore_encrypt_and_other_changes
Godfrey Martinez92e88a0ae2d9
diff --cc app/Http/Transformers/ActionlogsTransformer.phpindex b510db0a33,792874561f..6eedfcf5ed--- a/app/Http/Transformers/ActionlogsTransformer.php+++ b/app/Http/Transformers/ActionlogsTransformer.php@@@ -52,21 -50,16 +52,24 @@@ class ActionlogsTransformeif (($actionlog->log_meta) && ($actionlog->log_meta!='')) {$meta_array = json_decode($actionlog->log_meta);+ $clean_meta = [];+if ($meta_array) {foreach ($meta_array as $fieldname => $fieldata) {- $clean_meta[$fieldname]['old'] = $this->clean_field($fieldata->old);- $clean_meta[$fieldname]['new'] = $this->clean_field($fieldata->new);+ if( str_starts_with($fieldname, '_snipeit_')){+ if( $custom_field->where('db_column', '=', $fieldname)->where('field_encrypted', true)){+ $clean_meta[$fieldname]['old'] = "encrypted";+ $clean_meta[$fieldname]['new'] = "encrypted";+ }+ }+ else {+ $clean_meta[$fieldname]['old'] = $this->clean_field($fieldata->old);+ $clean_meta[$fieldname]['new'] = $this->clean_field($fieldata->new);+ }}- }+- $clean_meta= $this->changedInfo($clean_meta);+ $clean_meta = $this->changedInfo($clean_meta);+ }}$file_url = '';@@@ -129,8 -122,7 +132,10 @@@'log_meta' => ((isset($clean_meta)) && (is_array($clean_meta))) ? $clean_meta: null,'action_date' => ($actionlog->action_date) ? Helper::getFormattedDateObject($actionlog->action_date, 'datetime'): Helper::getFormattedDateObject($actionlog->created_at, 'datetime'),];++// \Log::info("Clean Meta is: ".print_r($clean_meta,true));+ //dd($array);++return $array;}