A bit of an odd one that has me scratching my head. I can update my users against computer with the computer_usage table fine. With mobile_usage though it always enters mobile_usage.person_id as 2 regardless of who I choose in pre-populated drop down of people?
I have the following tables (and some of the fields to give you an idea. 'id' is unique in each table):
- Code: Select all
computer (id, make, model, sn)
computer_usage (id, computer_id, person_id, used_from_date, used_to_date)
mobile (id, make, model, imei)
mobile_usage (id, mobile_id, person_id, used_from_date, used_to_date)
person (id, firstname, surname)
My tables\computer\relationships.ini:
- Code: Select all
[computer_usage]
action:label = "Users"
computer_usage.computer_id = computer.id
computer_usage.person_id = person.id
My tables\mobile\relationships.ini
- Code: Select all
[mobile_usage]
action:label = "Users"
mobile_usage.mobile_id = mobile.id
mobile_usage.person_id = person.id