BUGFIX: avoid segfault triggered by component call.

BUGFIX: change the ui version to get the sortable working again.
This commit is contained in:
Mateusz Uzdowski 2010-03-22 04:18:09 +00:00
parent 57097f5905
commit 91743ce3f5
1 changed files with 2 additions and 4 deletions

View File

@ -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) {