Skip to content

A free open source IT asset/license management system

Added slightly more output because wtf?

snipe4fd14e5859c3
diff --git a/app/Console/Commands/FixDoubleEscape.php b/app/Console/Commands/FixDoubleEscape.php
index 648e209950..ddd2b2670b 100644
--- a/app/Console/Commands/FixDoubleEscape.php
+++ b/app/Console/Commands/FixDoubleEscape.php
@@ -70,8 +70,9 @@ class FixDoubleEscape extends Command
$count[$classname][$field] = 0;
foreach($classname::where("$field",'LIKE','%&%')->get() as $row) {
- $this->info('Updating '.$field.' for '.$classname);
- $row->{$field} = html_entity_decode($row->{$field});
+
+ $fixed = html_entity_decode($row->{$field});
+ $this->info('Updating '.$field.' for '.$classname.' to '.$row->{$field}.' to '.$fixed);
$row->save();
$count[$classname][$field]++;