Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Dec 23, 2020
1 parent d1b0028 commit 6e67eeb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Grid/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,15 +537,21 @@ public function fill($data)

$this->original = Arr::get($this->originalModel, $this->name);

$this->value = $value = $this->htmlEntityEncode(Arr::get($row, $this->name));
$this->value = $value = $this->htmlEntityEncode($original = Arr::get($row, $this->name));

if ($original === null) {
$original = (string) $original;
}

$this->processConditions();

if ($this->hasDisplayCallbacks()) {
$value = $this->callDisplayCallbacks($this->original);
}

Helper::arraySet($row, $this->name, $value);
if ($original !== $value) {
Helper::arraySet($row, $this->name, $value);
}
}

$this->value = $value ?? null;
Expand Down

0 comments on commit 6e67eeb

Please sign in to comment.