Problem/Motivation

In 7.2 we had an admin form to configure the stuff being used in invite_target_roles(). I don't see any way to configure the target roles right now.

Proposed resolution

Instead of looking up the target role based on the inviters role, how about we just specify it on the invite type?

User interface changes

Adds a Target Role select list.

Data model changes

Adds a target_role property to invite_types.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Tim Bozeman created an issue. See original summary.

Tim Bozeman’s picture

Status: Active » Needs review
tontoman’s picture

In am getting the following error;

Notice: Undefined property: InviteType::$target_role in invite_type_form() (line 75 of /home/XXX/public_html/sites/all/modules/invite/includes/invite.admin.inc).

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.target_role' in 'field list': SELECT base.itid AS itid, base.type AS type, base.label AS label, base.description AS description, base.target_role AS target_role, base.data AS data, base.status AS status, base.module AS module FROM {invite_type} base WHERE (base.itid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 1 ) in EntityAPIController->query() (line 187 of /home/XXX/public_html/sites/all/modules/entity/includes/entity.controller.inc).

This is on a development machine running 7.50 with Invite 7.x-4.0-beta2+17-dev, Invite by e-mail 7.x-4.0-beta2+17-dev, Invite Limit, Invite Notifications 7.x-4.0-beta2+17-dev, Invite User Relationships 7.x-4.0