Stubborn error

Stubborn error

nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
edited November 2012 in Editor
Hi,

I have followed everything to the letter, but get the following error:

Undefined index: tblExerciseEquipment in /Users/nathan/Sites/x/functions/datatables/Editor/Join.php on line 474


### Editor:
{
"label": "Equipment:",
"name": "tblExerciseEquipment[].EEquipmentID",
"type": "checkbox"
}

### PHP:

Join::inst( 'tblExerciseEquipment', 'array' )
->join(
array( 'EID', 'f_EID' ),
array( 'EEquipmentID', 'f_EEID' ),
'tblExercisesXEquipment'
)
//->set(false) // Isolated the error to this join
->field(
Field::inst( 'EEquipmentID' )->validator( 'Validate::required' ),
Field::inst( 'EquipmentName0' )
)

### Database:

3 tables:

tblExerciseEquipment
tblExercises
tblExercisesXEquipment

All primary keys are INT(autoincrement).

As shown in your examples, my goal is to update tblExercisesXEquipment with the exercises checked on the user form.

###

I would appreciate any pointers!

- Nathan

Replies

This discussion has been closed.