Pārlūkot izejas kodu

update copyable

jqh 5 gadi atpakaļ
vecāks
revīzija
42884d9dcd
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/Grid/Displayers/Copyable.php

+ 2 - 1
src/Grid/Displayers/Copyable.php

@@ -42,6 +42,7 @@ JS;
     <i class="fa fa-copy"></i>
 </a>&nbsp;{$this->value}
 HTML;
-        return $this->value ? $html : '-';
+
+        return $this->value === '' || $this->value === null ? $this->value : $html;
     }
 }