Notice: Undefined variable: result_indexes in editableviews_plugin_style_row_edit_table->insert_form_elements() (line 222 of H:\wamp\www\drupal\sites\all\modules\editableviews\editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined variable: result_indexes_reverse in editableviews_plugin_style_row_edit_table->insert_form_elements() (line 222 of H:\wamp\www\drupal\sites\all\modules\editableviews\editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined variable: result_indexes in editableviews_plugin_style_row_edit_table->insert_form_elements() (line 227 of H:\wamp\www\drupal\sites\all\modules\editableviews\editableviews_plugin_style_row_edit_table.inc).
Notice: Undefined variable: edit_field_handlers_grouped in editableviews_plugin_style_row_edit_table->insert_form_elements() (line 227 of H:\wamp\www\drupal\sites\all\modules\editableviews\editableviews_plugin_style_row_edit_table.inc).
Comment | File | Size | Author |
---|---|---|---|
#17 | undefined_variables-1963690-17.patch | 660 bytes | nickonom |
#15 | undefined_variables-1963690-15.patch | 934 bytes | marcvangend |
| |||
#13 | FY.txt | 3.88 KB | kaizerking |
#10 | financial_year.zip | 5.1 KB | kaizerking |
#8 | my_view1.txt | 4.84 KB | kaizerking |
Comments
Comment #1
joachim CreditAttribution: joachim commentedCan you give me more details?
What sort of view is it? How is it built?
Can you debug to see why that is not set?
Comment #2
kaizerking CreditAttribution: kaizerking commentedIt is simple view please find the attached exported view
Comment #3
joachim CreditAttribution: joachim commentedYou don't seem to have added any editable fields to this view.
Comment #4
kaizerking CreditAttribution: kaizerking commentedYes,I have removed them to test,
if i haven't assigned any editable fields then it should not give any error right?
Comment #5
joachim CreditAttribution: joachim commented> if i haven't assigned any editable fields then it should not give any error right?
Without any editable fields, it simply won't work!
I should probably add some validation so it complains until you add some, but that could prove a bit annoying.
Comment #6
kaizerking CreditAttribution: kaizerking commentedLet me explain more on what I am trying to do
I have following entities:
Ledger
Ledger number ranges
Number range settings
'Ledger'
1 Sl. No:'serial' field Auto increment
'Ledger number ranges' has two fields
1"From" integer field 2 'To' integer field
'Ledger number range settings' has two fields
1 entity reference referencing 'Ledger number ranges'
2. A Boolean field Check box
Process:these three entities will be different transactions.
Ill use rules to 'set' the Ledger number based on the 'Ledger number ranges' field values
i,e the number will not be greater than the to values and not less than from value.
How ever the range should be active to use and create ledger which is decided by the boolean field.
That's the view which I have attached/
I think there is clash between field widget of the entity form and the field widget of entity editable views
I am also getting this error
Notice: Undefined index: display_label in options_field_widget_form() (line 137 of H:\wamp\www\drupal\modules\field\modules\options\options.module).
Comment #7
joachim CreditAttribution: joachim commentedSorry, I don't really follow any of the above.
Please could you explain the specific problem you are having in a specific view? If you can simplify the view as far as possible first that would be a help.
Comment #8
kaizerking CreditAttribution: kaizerking commentedhere is the simple view attached also the error page
Comment #9
joachim CreditAttribution: joachim commented> $view->base_table = 'eck_financial_year';
I'm not going to be able to import that, am I?
Can you reproduce this with a single boolean field on nodes?
Comment #10
kaizerking CreditAttribution: kaizerking commentedHere is the exported feature,
I do not want to use node, as actual error is on entities so the debugging will be appropriate for the given use case.
Comment #11
joachim CreditAttribution: joachim commented> I do not want to use node, as actual error is on entities so the debugging will be appropriate for the given use case.
The entity type should not matter, unless ECK is doing something weird.
Comment #12
kaizerking CreditAttribution: kaizerking commentedYou are right ,if i use content types i am not getting any errors
probably it is eck thing
Comment #13
kaizerking CreditAttribution: kaizerking commentedYou are right ,if i use content types i am not getting any errors
probably it is eck thing
attached node version
Comment #14
marcvangendI'm getting the same error
Notice: Undefined index: display_label in options_field_widget_form() (line 137 of /var/www/modules/field/modules/options/options.module).
when displaying a user entity. One of the columns displays a boolean checkbox field.The notice is triggered when options_field_widget_form() is trying to render that boolean field. 4 levels up in the call stack is line 144 of editableviews_handler_field_field_edit.inc, where edit_form() calls ctools_field_invoke_field().
Hope this helps.
Comment #15
marcvangendHere is a patch that merges default values for missing widget settings into the field instance. At least it solves the notice mentioned in #14, maybe it solves others too.
Thanks for reviewing.
Comment #16
NWOM CreditAttribution: NWOM commentedThank you for #15. It fixed my problem with the following notices always being shown after a save:Edit: Nevermind, I spoke too soon. My issue still remains. Not sure if this patch effects my problem, so please disregard this comment.
Comment #17
nickonom CreditAttribution: nickonom commentedTo replicate the error just check on the option
Show the empty text in the table
underEdit view > Format > Settings
and it will output:The patch in #15 tries to deal with the problem too late, because ideally the execution should quit the
function insert_form_elements($result)
in the very beginning if there is no any $result.The proposed patch should do. It is against 7.x-1.x as https://www.drupal.org/project/editableviews/git-instructions for some reason doesn't have dev version.