Skip to content
This repository
Browse code

Merge pull request #20 from fleeco/master

Added label support for validation
  • Loading branch information...
commit 48b36f7c48c891b5cc51841df86ca668a1483afd 2 parents 3ebea5f + 04a6e8b
Wouterrr authored

Showing 1 changed file with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. +9 1 classes/mango/core.php
10 classes/mango/core.php
@@ -1252,7 +1252,15 @@ protected function _check(Validation $data)
1252 1252 $data->rules($name, $field['rules']);
1253 1253 }
1254 1254 }
1255   -
  1255 +
  1256 + if (isset($this->_labels))
  1257 + {
  1258 + foreach ($this->_labels as $name => $field)
  1259 + {
  1260 + $data->label($name, $field);
  1261 + }
  1262 + }
  1263 +
1256 1264 return $data;
1257 1265 }
1258 1266

0 comments on commit 48b36f7

Please sign in to comment.
Something went wrong with that request. Please try again.