Merge pull request #168 from danieldia/patch-1

FIX: Ensure that the data-add-url single quotes are not processed by join_links
This commit is contained in:
Will Rossiter 2013-10-17 00:25:12 -07:00
commit f66c3c340a

View File

@ -19,7 +19,7 @@ class FieldEditor extends FormField {
* @return String
*/
public function FieldHolder($properties = array()) {
$this->setAttribute('data-add-url', '\''.Controller::join_links($this->Link('addfield').'\''));
$this->setAttribute('data-add-url', '\''.Controller::join_links($this->Link('addfield')).'\'');
return $this->renderWith("FieldEditor");
}