Hi everybody.
I'm testing this module (I test 7.x-1.0 and dev versions) and I have a couple of errors with it (with same problems in both). I'm using a local drupal core 7.26 version with underscore (v 1.6.0) and backbone (v 1.1.2)
My jQuery version is 1.5.2, Omega subtheme by default and Display Suite for displaying nodes. Problems:

1. When I want view a node I have this notice message: Notice: Undefined index: #language in edit_preprocess_field() (line 391 in \sites\all\modules\edit\edit.module)
I solved that , overriding line 391 of edit.module with this,

$language = isset($element['#language'])?$element['#language']:LANGUAGE_NONE;

2. I can't see Quick Edit option in my contextual links.
I had a Javascript Error (Uncaught TypeError: Cannot read property 'getAttribute' of undefined ). Like I'm using Display Suite (REF: https://drupal.org/comment/8283689#comment-8283689) I override hook_preproccess_node with this

$vars['attributes_array']['data-edit-entity-id'] = 'node/' . $vars['nid'];

and print $attributes variable in my display suite templates with

print $attributes;

. But with theses changes error dissapear I can't see Quick Edit in contextuals

Instead I have another javascript problem : POST http://cms.dev/edit/metadata 404 (Not Found) and javascript console is output these lines:

send jquery.min.js:16
d.extend.ajax jquery.min.js:16
fetchMissingMetadata edit.js?v=7.26:350
Drupal.behaviors.edit.attach edit.js?v=7.26:136
(anonymous function) drupal.js?n42mxr:76
d.extend.each jquery.min.js:16
Drupal.attachBehaviors drupal.js?n42mxr:74
(anonymous function) drupal.js?n42mxr:412
f.resolveWith jquery.min.js:16
d.extend.ready jquery.min.js:16
c.addEventListener.y jquery.min.js:16

It's like edit/metadata route in ajax callback is not recognize. Anybody can help me with this?
Regards

Comments

drupso’s picture

Issue summary: View changes
drupso’s picture

Status: Active » Closed (fixed)

It seems it's not a Edit module problem. It's about Display Suite. Updating this module its working now