Permalink
Browse files

clearer comment

  • Loading branch information...
1 parent e31561b commit e11c3301bc9fdaff518902969fdd5b89f221dd61 @ChrisBuchholz ChrisBuchholz committed Apr 4, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 fields.php
View
@@ -86,6 +86,8 @@ public function create_field($field)
$zoom = $field['zoom'];
// generate a unique id and put it as suffix to the fields name
+ // the field name includes [ and ] so we just replace them with
+ // more proper values for use in an html attribute
$ptrns = array('/\[/', '/\]/');
$rplcs = array('_', '');
$uid = preg_replace($ptrns, $rplcs, $field['name']);

0 comments on commit e11c330

Please sign in to comment.