Menu

#490 Error when editing a entry after adding a participant

Minor
open
nobody
None
1
2020-10-29
2020-10-17
Elistia
No

Think I have encountered a bug. Steps to recreate as below:

  • Create a booking - Allow registration and set capacity.
  • Save.
  • Return to diary.
  • Click on the booking just created to view entry.
  • Click 'Register' to register yourself for event (or enter custom name and register).
  • Entries table will be updated to include the new registration.
  • Now click directly on 'Edit Entry' at the bottom of the page.
  • Then click 'Save'

I am then receiving the following error:

E_USER_WARNING in E:\websites\RBS-1.9.2\mrbs_sql.inc at line 1535
id not set
MRBS GET: Array
(
    [view] => day
    [year] => 2021
    [month] => 12
    [day] => 25
    [area] => 5
    [room] => 12
)
MRBS POST: Array
(
)
MRBS SESSION: Array
(
    [csrf_token] => 6603c2d3cef0fd1829624e452abeedb59ea9b2f335dcf59114abd2b6bd3fb013
    [user] => MRBS\User Object
        (
            [username] => xxx
            [display_name] => xxx
            [email] => xxx
            [level] => 2
        )

)

xxx replaces my details which are correct.

Entry can successfully be edited by clicking on it from the diary and then on Edit. It is only when editing the entry directly after adding a participant that it fails.
Presumably something is getting lost on the postback that adds the participant?

Really liking the registration/participant functionality by the way. This is going to be really useful!

Cheers

Discussion

  • Elistia

    Elistia - 2020-10-17

    Apologies - should have added that I am using latest version (1.9.2)

     
  • Campbell Morrison

    Thanks for spotting this and glad you like the registration feature. I've now fixed the bug in the default branch in e14681.

     
    👍
    1

    Last edit: Campbell Morrison 2020-10-29