Skip to content

Commit a92a9d7

Browse files
committed
Removed duplicated deleted
Signed-off-by: snipe <[email protected]>
1 parent 8f23a45 commit a92a9d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Http/Transformers/ActionlogsTransformer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function changedInfo(array $clean_meta)
215215
$newRtdName = $newRtd ? e($newRtd->name) : trans('general.deleted');
216216

217217
$clean_meta['rtd_location_id']['old'] = $clean_meta['rtd_location_id']['old'] ? "[id: ".$clean_meta['rtd_location_id']['old']."] ". $oldRtdName : '';
218-
$clean_meta['rtd_location_id']['new'] = $clean_meta['rtd_location_id']['new'] ? "[id: ".$clean_meta['rtd_location_id']['new']."] ". $newRtdName : trans('general.unassigned');
218+
$clean_meta['rtd_location_id']['new'] = $clean_meta['rtd_location_id']['new'] ? "[id: ".$clean_meta['rtd_location_id']['new']."] ". $newRtdName : '';
219219
$clean_meta['Default Location'] = $clean_meta['rtd_location_id'];
220220
unset($clean_meta['rtd_location_id']);
221221
}
@@ -230,8 +230,8 @@ public function changedInfo(array $clean_meta)
230230
$newLocationName = $newLocation ? e($newLocation->name) : trans('general.deleted');
231231

232232

233-
$clean_meta['location_id']['old'] = $clean_meta['location_id']['old'] ? "[id: ".$clean_meta['location_id']['old']."] ". $oldLocationName : trans('general.deleted');
234-
$clean_meta['location_id']['new'] = $clean_meta['location_id']['new'] ? "[id: ".$clean_meta['location_id']['new']."] ". $newLocationName : trans('general.unassigned');
233+
$clean_meta['location_id']['old'] = $clean_meta['location_id']['old'] ? "[id: ".$clean_meta['location_id']['old']."] ". $oldLocationName : '';
234+
$clean_meta['location_id']['new'] = $clean_meta['location_id']['new'] ? "[id: ".$clean_meta['location_id']['new']."] ". $newLocationName : '';
235235
$clean_meta['Current Location'] = $clean_meta['location_id'];
236236
unset($clean_meta['location_id']);
237237
}

0 commit comments

Comments
 (0)