CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • [SOLVED] problem editing participants
Pages: [1] 2

Author Topic: [SOLVED] problem editing participants  (Read 2628 times)

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
[SOLVED] problem editing participants
July 13, 2011, 01:36:20 am
Hi,

I'm having some issues editing participants.

I've created some custom data in two custom sets, both against participants, I've then created a profile which uses fields from both sets. It all looks good on the preview.

I've added people in both front end and back end and they've registered ok.

I go to edit their participant record and it doesn't load one of the custom data tabs onto the form, when I hit save it comes up with a warning that one of the fields is required, I am expecting to see this field but it is on the tab that is not showing up.

Can anyone shed any light into this?

Cheers,

Dave
« Last Edit: August 05, 2011, 08:48:37 am by davesage »

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: problem editing participants
July 13, 2011, 01:59:24 am
Just tried the scenario on the joomla.demo and getting something similar.

I've created two field sets each with one field then a profile of the 2 fields.

Add a registrant and the ajax won't open the two tabs that are showing at the bottom to add the information?

Humm,

Dave

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: problem editing participants
July 13, 2011, 02:04:15 am
Should I not be trying to make a profile from two custom data sets?

It's just that some of the data is for any type of event and others are for specific ones but I want to draw them together in the profile to make registration clear.

Thanks for any help on this,

Dave

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: problem editing participants
July 13, 2011, 02:12:38 am
Sorry a bit more testing shows that, when you open the form for editing it doesn't load the tab for the data which is specific to that event type.

If you change the event to something different then change it back again to the original it then loda the extra (missing) tab onto the screen and you can edit and save.

Looks as the original form build doesn't check the event to see if it needs to add any custom data specifically for that event name/type.

Should I raise this as a bug?

Cheers,

Dave

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: problem editing participants
July 14, 2011, 09:09:40 am
Hi,

Should I raise an issue in the issue tracker? Has anyone else confirmed this behaviour and whether it is a bug?

Thanks,

Dave

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: problem editing participants
July 14, 2011, 12:39:31 pm
So the issue is specific to this combination?
1. A custom data set Used For participants in a specific event.
2. Loading the Add / Edit Participant form with a pre-selected event (probably from the Manage Events -> Event Links -> Register Participant action ??

Assuming this is what you're seeing (the pre-selected event is passed in the URL as "&eid=<some_event_id>"), sounds like a bug. If you're able to do some debugging and submit a patch that would be great.
Protect your investment in CiviCRM by  becoming a Member!

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: problem editing participants
July 14, 2011, 02:35:21 pm
Hi Dave,

Adding participants is ok I think because it loads the custom data tabs onto the page after you select the event, it must query the database for any extra data sets either for the named event or the events type that you select, this bit works ok.

It's when you come to edit a participant, the event field is obviously already filled in but the initial page load doesn't load the extra information specific to that event or that events type.

The work around is to change the event to a different one then set it back to the original event and it then goes and loads the extra data sets again showing you the entered inforamation from the add process.

Sorry hope I've explained it clearly?

I hit the issue because I had a custom data set against Participants (Event Type) for a specific event type, I've just checked on the demo site and indeed if you create a custom set on Participants (Event Name) this doesn;t load on edit either. I think the Role one also doesn;t so it seems like it is generic issue with all custom data sets loading on edit of participant records.

The edit can be fired from anywhere in the system (Contact records, event dashboard or participant list pages) and it still doesn;t load the data.

(I think something strange happens if you change their role too, if you tick a role that has custom data it adds the tab but if you uncheck a role it doesn't remove the tab which I suppose it should (it does for the other types of custom data - IE change the event and you lose tabs)

I'll try and find some time to dig into the code and find out what is happening, I think I need to jump on IRC sometime and get the low down on where to start digging.

Do want to help though,

Cheers,

Dave

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: problem editing participants
July 14, 2011, 04:30:16 pm
The code for this is in templates/CRM/Event/Form/Participant.tpl. Look for showCustomData() / buildCustomData().
Protect your investment in CiviCRM by  becoming a Member!

Yoda_Oz

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.22
Re: problem editing participants
July 26, 2011, 06:56:58 pm
hi,
i'm having the same, or similar issue...

i have a custom data set for participants (event name). it works fine up until the point where someone registers for that event and then i want to go in and edit that custom field in that particular registration. the custom data set is not there! it is there when i view the registration, just not when i want to edit it.

see attached screenshots of both the edit and view participant pages.

I'm no good at coding. how do i get that custom field group to show up on the edit page?

thanks.

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: problem editing participants
July 27, 2011, 01:06:51 am
Hi,

The only work around at the moment I've found is to open the participant for editing then change the event field to another event and then change it back to the original, this then loads the extra data onto screen.

I need to find some time to debug it or we'll need to wait for someone else to produce a patch.

Yoda_Oz

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.22
Re: problem editing participants
July 27, 2011, 01:11:11 am
it won't let me edit the event name. take a look at the second screenshot in my last post and you will see. I was using civicrm for joomla version 3.4.1 so i upgraded to 3.4.4 but no change.

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: problem editing participants
July 27, 2011, 04:32:38 am
Interesting, I'm running 3.4.4 and I can. Not sure why this would be different. I know sometimes the system locks fields for editing when certain data is added, maybe this has occured in this instance.

Yoda_Oz

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.22
Re: problem editing participants
July 27, 2011, 04:36:34 am
yes, this is the case. there are already participants registered.

doesn't make sense that you cannot change just one participant to another event though even if there are already participants registered for that event. perhaps this could be a make-it-happen thing: to be able to change an event once someone is already registered for a particular event.

this doesn't help the custom fields situation though. does anyone know why the custom data set (that are for a participant - event name) don't show up when trying to edit a participant.

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: problem editing participants
July 27, 2011, 05:22:18 am
But I can edit the event whe I have participants against the event?

I think what you are experiencing is the same as the regression bug Dave Greenburg mentioned in my other topic which needs fixing.

Yoda_Oz

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 3.3.3
  • CMS version: Joomla 1.5.22
Re: problem editing participants
July 27, 2011, 06:31:47 am
I'm not editing the event. I'm trying to edit the participant of an event. does this make sense?

what's the regression bug you are talking about? do you have a link to that post?

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • [SOLVED] problem editing participants

This forum was archived on 2017-11-26.