Hi,

Great module. Truly. Worked like a charm when joining nodes and users however not so much when used with flags and users. I get the following error:

Notice: Undefined index: flag_user_content_rel in editableviews_plugin_style_row_edit_table->insert_form_elements() (line 240 of sites/all/modules/editableviews/editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined index: in editableviews_plugin_style_row_edit_table->insert_form_elements() (line 242 of sites/all/modules/editableviews/editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined index: flag_user_content_rel in editableviews_plugin_style_row_edit_table->insert_form_elements() (line 250 of sites/all/modules/editableviews/editableviews_plugin_style_row_edit_table.inc).

From the research I did online it may have something to do with the node ID but not being a programmer I don't want to venture any diagnosis.

Attached is the view just to provide a full documentation of the event.

Thank you in advance for a solution.

CommentFileSizeAuthor
Subscriber List View.txt5.88 KBChokti
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Title: Undefined Index Error when two tables are joined » can't use editable fields on Flagging entities

This is actually to do with having an editable field on the Flagging entities that your relationship brings in.

The problem is that Flaggings are not declared as a base table to Views, and the code in Editable Views expects to find this -- and in fact needs it in order to understand what entity type it is working with.

However, it's not as simple as declaring Flagging entities as a base, as when I try that various other things in Views blow up. I'm afraid this is a rabbit hole I don't have time to go into any further right now. I've filed an issue on Flag; if you have the time & resources to work on this that would be great. #2277813: declare Flagging entity as a base in Views.

Chokti’s picture

Thank you for your very rapid response Joachim.

Clear. I need a new strategy. :(

Cheers!

joachim’s picture

Well it's probably not a huge job to figure it out over at Flag, just more time than I have to squeeze in between real life and work.

Chokti’s picture

No worries. I already appreciate the time you have put into my query. Thanks.
Also, I changed strategy and used rules link, which allowed me to exploit editable views functionality.

joachim’s picture

Status: Active » Closed (works as designed)

Closing, as this is to due with Flag's support for Views.