Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.60
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2016 at 09:17 UTC
Updated:
28 Apr 2016 at 15:04 UTC
Jump to comment: Most recent
Comments
Comment #2
Argus commentedDid you make any other changes appart from installing the H5P module in your OA installation?
Comment #3
johanf commentedNo.
before reporting an issue and to be sure i made 2 installations. one drupal and one openatrium and add only the H5P module
Comment #4
Argus commentedComment #5
mpotter commentedWell, nobody ever said Atrium was fully compatible with every other Drupal module. It's up to that module author to make their module more compatible. Atrium uses modules such as Panels and Organic Groups that can change behavior and the H5P module needs to account for that.
But since Atrium doesn't "own" these modules (like Panels, OG, etc), it's not something we can fix here in this issue queue. This really should be posted to the H5P issue queue.
Comment #6
hosais commentedHi, JohanFeuillet, you should be able to save it. I tested it before. Are you sure it is not "showed" instead of not saved? Check my post before: https://www.drupal.org/node/2682889. Hope this help.
Comment #7
johanf commentedThanks Mike ... i posted an issue on h5p module page. Any clue about what can happen ? i can create but not modifiy.
@Hosais Atrium is awesome and i have no problem creating content with. I have a problem editing a content node create with the h5p module content type. I can create a content and see it. If i edit and save i don"t see the modification ( i see the old version ) . so it's well "saved" who doesn't work after an edit.
Comment #8
hosais commentedHi JohanFeuillet,
In my installation, h5p content can be saved and modified (in three different test installations). Ddi you try to check your log message?
hosais
Comment #9
farrisimin commentedHi Mike,
Let me start by saying OA 2.6 is a huge step forward from 2.54 ... I am getting the same problem here I can't save or edit new contents.. I think it has something to do with the panels everywhere module I read that somewhere... the hierarchical select module isn't working either I feel it is for the same reason, as everything was working great until 2.54... This happened after the update to 2.60. OA is awesome and we love it.
Best Regards,
F
Comment #10
farrisimin commentedHi everyone,
The following patch for panels everywhere works, I tested it..
https://www.drupal.org/node/1139918
diff --git a/plugins/tasks/site_template.inc b/plugins/tasks/site_template.inc
index 939d421..5d7feb9 100644
--- a/plugins/tasks/site_template.inc
+++ b/plugins/tasks/site_template.inc
@@ -82,6 +82,13 @@ function panels_everywhere_site_template_get_base_contexts($task, $subtask, $pla
// this.
if ($page) {
$node = _panels_everywhere_find_context($page['contexts'], 'node');
+ // If the node object is a node form then blank out the context and
+ // replace it with a generic object. This is to work around a limitation
+ // in Panels and may introduce regressions.
+ if ($form_context = ctools_context_get_form(array($node))) {
+ $node = ctools_context_create_empty('node');
+ }
+
$account = _panels_everywhere_find_context($page['contexts'], 'user');
// We're already including the logged in user. We don't want that to
@@ -94,6 +101,12 @@ function panels_everywhere_site_template_get_base_contexts($task, $subtask, $pla
// This context will only be loaded if the Taxonomy module is loaded.
if ($load_taxonomy) {
$term = _panels_everywhere_find_context($page['contexts'], 'entity:taxonomy_term');
+ // If the term object is a term form then blank out the context and
+ // replace it with a generic object. This is to work around a limitation
+ // in Panels and may introduce regressions.
+ if ($form_context = ctools_context_get_form(array($term))) {
+ $term = ctools_context_create_empty('entity:taxonomy_term');
+ }
}
}
else {
Comment #11
johanf commentedThanks Farrisimin? Works like a charm
Comment #12
mpotter commentedAdded this patch to panels_everywhere in Open Atrium. Committed to 6a176c3 in oa_site_layouts