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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dagmar’s picture

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

sevi’s picture

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

dagmar’s picture

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

dagmar’s picture

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

lyricnz’s picture

Status: Active » Fixed

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

Status: Fixed » Closed (fixed)

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

mdibrahim’s picture

Title: Error when adding a flag weight field. » Flag Weights Issue que
Assigned: Unassigned » mdibrahim
FileSize
54.88 KB

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.