As requested by japerry:
On: admin/conference/events, allow users to determine which event is the default one, and auto populate the node form dropdown with which event is default based off the group gid.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aburrows’s picture

Status: Active » Needs review
FileSize
6.07 KB

Just uploaded patch, includes new hook for form, flag and views. Off onto plane to London now, so can amend anything when I'm back

japerry’s picture

Status: Needs review » Needs work
FileSize
6.36 KB

Great work! We're almost there, however this patch doesn't allow you to select one default event. The expected functionality is when one event is selected as default, the other event (previously selected as default) will be unselected.

I've re-rolled the patch to apply cleanly against the latest head. We should be testing against this patch since #1 doesn't apply anymore.

ezra-g’s picture

Title: Select default event » Select default event on the multi-event dashboard

Slightly more descriptive title.

aburrows’s picture

Patch that uses previous patch and additional rules to fix issue. Please test

aburrows’s picture

Status: Needs work » Needs review
japerry’s picture

Status: Needs review » Fixed

added! well sorta--

After looking at how the flag worked, we decided that it'd be better to make it a configuration option. So now you can configure a default event. If there is only one event, it'll just use that by default instead.

Either way, now when creating a node, you'll not see the group on creation if you have a default set. Of course if you have more than one event, or zero events, you can set the default to be -none-

aburrows’s picture

Has this functionality been done, or do you want a patch for it?

chrisguindon’s picture

Status: Fixed » Needs review
FileSize
646 bytes

After pulling-in the new changes in my sandbox site, I started to see a long list of php errors on some of my views.

Notice: Undefined property: stdClass::$nid in cod_events_views_pre_render() (line 6 of /profiles/cod/modules/contrib/cod_support/cod_events/cod_events.views.inc).

I suggest, we verify the name of the view before we the loop to add '!event (default event)'.

http://drupalcode.org/project/cod_support.git/blob/d957530c599b848ef5b67...

Attached is a patch that does that.

jyee’s picture

Issue summary: View changes
Status: Needs review » Needs work

#8 was committed, but I think we're still not quite fixed on this.

jyee’s picture

Status: Needs work » Fixed

Marking as fixed. Changing events via the admin interface is confirmed to work and japerry is currently making changes to set the default event during install.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.