diff --git a/src/RunningFilter.php b/src/RunningFilter.php index 876d5ea..1357d4a 100644 --- a/src/RunningFilter.php +++ b/src/RunningFilter.php @@ -171,15 +171,15 @@ public function setField($field, $value, $mod = null) throw new \InvalidArgumentException('Mod `'.$mod.'` is not valid for Field `'.$field.'`.'); } - $value = $this->transform($field, $value); - - $this->fields[$field] = $value; if ($mod === null) { $mod = $this->defaultMods[$field]; } - + $this->mods[$field] = $mod; + $value = $this->transform($field, $value); + $this->fields[$field] = $value; + return $this; }//end setField()