Project:Flag Weights
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:mdibrahim
Status:closed (fixed)

Issue Summary

I was following the instructions on http://drupal.org/node/356781

When I went to add "flags: weight" in fields, it gave this error: "An error occurred at http://www.(domain).com/admin/build/views/ajax/add-item/(flag type)/page_1/field."

This is with Views 6.x-2.3, Draggable Views 6.x-3.x-dev and Drupal 6.6.

Comments

#1

I think that this error is because Flag Weights don't define the set_range() function in draggableviews_handler_flag_weights.inc

#2

Unfortunately the current dev-versions are not compatible at the moment. You're right with the set_range() function (but there's also some other stuff). The attached patch fixes this issue temporary.

Greetings,
sevi

AttachmentSize
draggableviews_handler_flag_weights.inc_.patch 2.32 KB

#3

Hello Sevi:

I agree. This is not working correctly. Indeed, I can't get this work. (I worked for two hours and... nothing)

I have tested your patch and now weight selects are empties. I think this is because
range (start and end) is never defined.

Do you get this working correctly?. When I click "save" flag weights doesn't
change.

Greetings,
Mariano

#4

Update:

Sorry Sevi, the patch works, I was creating a block instead of a page. For that reason I could not see the results.

Thanks
Mariano

#5

Status:active» fixed

Committed patch to CVS - http://drupal.org/cvs?commit=183198

#6

Status:fixed» closed (fixed)

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

#7

Title:Error when adding a flag weight field.» Flag Weights Issue que
Assigned to:Anonymous» mdibrahim

When I went to add "flags: weight" in fields, it gave this error: "An error occurred at /borda1/admin/build/views/ajax/preview/flag_bookmarks4"

This is with Views 6.x-2.2, Draggable Views 6.x-3.2-beta4 and Drupal 6.1.

Here is an image file which show the view of my work.

AttachmentSize
1.JPG 54.88 KB