diff --git a/code/editor/FieldEditor.php b/code/editor/FieldEditor.php index db11fb0..5bdfc9d 100755 --- a/code/editor/FieldEditor.php +++ b/code/editor/FieldEditor.php @@ -49,15 +49,13 @@ class FieldEditor extends FormField { */ function Fields() { Requirements::css("userforms/css/FieldEditor.css"); - Requirements::javascript(SAPPHIRE_DIR ."/thirdparty/jquery-ui/jquery.ui.core.js"); - Requirements::javascript(SAPPHIRE_DIR ."/thirdparty/jquery-ui/jquery.ui.widget.js"); - Requirements::javascript(SAPPHIRE_DIR ."/thirdparty/jquery-ui/jquery.ui.sortable.js"); + Requirements::javascript(SAPPHIRE_DIR ."/thirdparty/jquery-ui/jquery-ui-1.8rc3.custom.js"); Requirements::javascript("userforms/javascript/UserForm.js"); // Don't return any fields unless we actually have the dependent parameters set on the form field if($this->form && $this->form->getRecord() && $this->name) { $relationName = $this->name; - $fields = $this->form->getRecord()->$relationName(); + $fields = $this->form->getRecord()->getComponents($relationName); if($fields) { foreach($fields as $field) {