When you export a node convert template in ... say a Feature, when the feature is enabled, the node convert template is not listed in the advanced action configuration "Template" form field. I looked at the code and this is because it's looking directly at the node_convert_templates table and has no idea about any of the CTools exported templates.

The advanced actions is using the "nctid" primary key as the index value for the template to use, which makes sense except the exported templates do not have this key. It would seem that the UUID module could be used to create this unique ID then node_convert_convert_action_form() could use node_convert_load_all_templates() to list exported node convert templates as well as ones existing only in the database.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shadysamir’s picture

This patch replaces direct database query with node_convert_load_all_templates() in node_convert_convert_action_form

shadysamir’s picture

Status: Active » Needs review
Derimagia’s picture

Priority: Normal » Major
Status: Needs review » Reviewed & tested by the community

Works for me. Without this, node convert templates loaded from features are unable to be converted to. This is a major issue.

JakeRogers’s picture

Line numbers are incorrect and patch does NOT work...at least for me!

jennypanighetti’s picture

Status: Reviewed & tested by the community » Needs work

The patch applied for me, but re-creating the Feature still did not make the templates editable or act as actions. I had to manually copy the INSERT statements from the `node_convert_templates` and `actions` tables.