Notice: Undefined index: und in support_mail_tokens() (line 1443 of (local path to Drupal site)/sites/default/modules/support/support.module)

The above was received and noted twice when trying to make a Project for the first time. Any updates to the Project ticket shows this error message again save three times.

Let me know what additional information and details can be provided to assist here. Thanks in advance.

Comments

LinuxETC’s picture

Looks like the "double entry" could be from the Project ID starting at "2" instead of "1" like I would expect in the databases.

I also noticed there are now two Project tabs formed with the Project title with the Client overview (this Project was assigned to a specific Client for reference).

bdragon’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev

Looks like the primary cause of this is blindly assuming the node body field is not empty.

Since drupal tends to not set up the field structure when that field is empty, I need to add some additional checks.

bdragon’s picture

Status: Active » Fixed

Fixed, thanks.

I also fixed rendering to use the correct filter instead of always using the fallback filter.

http://drupalcode.org/project/support.git/commit/186322d40208df7572211c3...

LinuxETC’s picture

Looks like there is still the duplicate project tabs when going to the Support Overview of the client with the assigned Project.

Thoughts here?

bdragon’s picture

Are you sure you don't have two projects?
What are the paths the tabs are pointing to?

LinuxETC’s picture

It is one project. There is a slight path difference noted below:

(site URL)/support/(client)/active/(project name)
(site URL)/support/(client)/new/(project name)

Which I see is related to if the ticket State = "new" or "something else" where it will show up in the proper Project Overview page.

So this is not an issue, just needed some clarification it seems. I believe Jeremy is working on some documentation with respects to the Support Project module, so perhaps this will be included.

Thanks for the assistance!

bdragon’s picture

There should be a set for each state. The projects are subtabs of each ticket state. Are you doing something special with theming? In the seven theme the subtabs show up in a second row under the state tabs.

I know that this is suboptimal, and I'd like to redo it , but have been focusing on more critical issues.

What do you mean by "project overview page" by the way?

Oh, and if you have any ideas for a better scheme for laying things out, I'd love to hear them.

bdragon’s picture

Oh, also, note that the tabs are being used as *filters* for the ticket queue. Additionally, projects are actually optional. If we wanted to have a project tab selected at all times, we'd need to add a "No project" one, I suppose.

bdragon’s picture

Title: Notice: Undefined index: und in support_mail_tokens() (line 1443 of sites/default/modules/support/support.module » Project tab confusion
Status: Fixed » Active

Well, I guess they aren't optional once you've created them (which I guess may be a bug), but tickets created before you made any projects won't have one, so won't show up in the queue if you have a project tab selected.

Jeremy?

jeremy’s picture

> tickets created before you made any projects won't have one, so won't
> show up in the queue if you have a project tab selected

Correct. This is the behavior in 7.x too.

In the 7.x-2.x branch we will be refactoring this; ticket listings will be built with Views and proper filters.

LinuxETC’s picture

Thanks. The following is a feature request that addresses similar to what Jeremy noted

http://drupal.org/node/1302766

I can wait for 7.x-2.x hopefully. ;-)

purencool’s picture

Issue summary: View changes
Status: Active » Closed (outdated)