Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I enable read-only mode for a content type, and then preview a new node of that type, any new tags that I had entered are lost.
Comment | File | Size | Author |
---|---|---|---|
#1 | unitag-DRUPAL-6--1_533802_tags_preview.patch | 930 bytes | dboulet |
Comments
Comment #1
dboulet CreditAttribution: dboulet commentedI'm not sure what the right approach to fix this is. Here's one option, skipping the form validation code if the node is being displayed as a preview.
Comment #2
apadernoI have the same problem; I was previewing a node created as first user, and the free tags has been replaced by quotation marks.
Comment #3
softrusher CreditAttribution: softrusher commentedPatch#1 does not work if the site uses any other language than english because
$form_state['values']['op']
is translated. I used($form_state['clicked_button']['#submit']['0'] != 'node_form_build_preview')
now but don't know if its the right way.Comment #4
Zen CreditAttribution: Zen commentedFixed with
Comment #6
funkytraffic CreditAttribution: funkytraffic commentedThe patch in the dev version in fact helps out, but there is an error message, saying:
warning: Invalid argument supplied for foreach() [mywebsitefolder]/modules/taxonomy/taxonomy.module on line 70.
Comment #7
apaderno@funkytraffic: Are you sure the error is caused by Unitag?