Skip to content

Commit

Permalink
Merge pull request #211 from nayzak/patch-1
Browse files Browse the repository at this point in the history
Fix for #166
  • Loading branch information
sleeping-owl committed Sep 3, 2015
2 parents 3593cb3 + a5e21a4 commit 19963ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/SleepingOwl/Admin/FormItems/BaseFormItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public function validationRules($validationRules = null)
{
return $this->validationRules;
}
if (is_string($validationRules))
+ {
+ $validationRules = explode('|', $validationRules);
+ }
$this->validationRules = $validationRules;
return $this;
}
Expand Down Expand Up @@ -80,4 +84,4 @@ function __toString()
}
}

}
}

1 comment on commit 19963ce

@oldskool73
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has added '+' signs to lines 41,42 &43, and completely broken my site :(

Please sign in to comment.