Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 379175

Summary: [pmi] Undefined index notice in projects_project_links() function
Product: Community Reporter: Wayne Beaton <wayne.beaton>
Component: Project Management & PortalAssignee: Portal Bugzilla Dummy Inbox <portal-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nathan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Wayne Beaton CLA 2012-05-10 15:11:49 EDT
This notice is being reported:

Notice: Undefined index: value in projects_project_links() (line 163 of /home/wayne/git/org.eclipse.portal/sites/all/modules/custom/features/projects/projects.module).

The code is looking for the value in a "value" column which does not exist. I believe the desired column is "url".
Comment 1 Wayne Beaton CLA 2012-05-10 16:21:29 EDT
Fixed.
Comment 2 Wayne Beaton CLA 2012-05-10 16:21:30 EDT
Created attachment 215428 [details]
mylyn/context/zip
Comment 3 Wayne Beaton CLA 2012-05-10 16:41:50 EDT
Reopening. There is a mismatch between the field type on the server and code.
Comment 4 Wayne Beaton CLA 2012-05-10 17:02:53 EDT
The "Project Plan" URL was not updated to a link-type field. I noticed that a couple of other link fields weren't included in the feature either. I've fixed this.

On projects.eclipse.org, I had to delete the project plan field and then rebuild the content-type. There has got to be a better way to roll out updates like this...
Comment 5 Nathan Gervais CLA 2012-05-11 00:02:13 EDT
(In reply to comment #4)
> The "Project Plan" URL was not updated to a link-type field. I noticed that a
> couple of other link fields weren't included in the feature either. I've fixed
> this.
> 
> On projects.eclipse.org, I had to delete the project plan field and then
> rebuild the content-type. There has got to be a better way to roll out updates
> like this...

Features is unable to change the type of field, or delete them for reasons found here > http://drupal.org/node/649298

But I agree this is a problem