clarity-h2020 / csis-helpers-module

CSIS Helpers Drupal Module
GNU General Public License v3.0
1 stars 0 forks source link

Studyid missing in drupalSettings csishelpers.entityinfo on Summary view of step #4

Closed fgeyer16 closed 5 years ago

fgeyer16 commented 5 years ago

On the Summary view of a Step the drupalSettings.csishelpers.entityinfo.study variable is null and not the study id.

fgeyer16 commented 5 years ago

All tabs are affected in which another node is embedded (e.g. maps too). Entityinfo is overwritten by this embedded node since they are rendered after the containig step node. This is a side effect of the sollution of #2 So we have to check if we are in the top node or not.

fgeyer16 commented 5 years ago

Checking if the node is on Top happens now by checking if the view mode of the nodeis one of our view modes used for tabs (introduction,data,table,maps,twins,summary,sc'). Checked if this work by viewing the source of the page and search for 'csisHelpers'.found it on all tabs of all steps.