Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
forms system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
23 Mar 2009 at 13:17 UTC
Updated:
21 Aug 2018 at 03:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedFYI, a wikitools issue already exists #262354: Can't save wiki content - title is locked and empty (Move Protection broken).
Comment #2
damien tournoud commentedBumping to D7.
This is due to the fact that some value callbacks (
form_type_*_value()functions) returns a value even when$editis NULL (which is the case when a disabled element is posted).In the case at hand:
Here
str_replace()will cast the NULL $edit value to an empty string, leading to that bug.Comment #3
damien tournoud commentedComment #4
Anonymous (not verified) commentedThanks, Damien. What do you suggest for a fix? Maybe
Comment #5
Anonymous (not verified) commentedMaybe this is better?
Comment #6
damien tournoud commentedActually, this is already fixed in Drupal 7.
Here is a test.
Comment #7
chx commentedGood!
Comment #8
webchickExcellent! Go, DamZ, GO! :)
Committed to HEAD.
Comment #9
damien tournoud commentedThis is still a bug in Drupal 6.
Comment #10
gábor hojtsyI think we had duplicates for this, so marking the tests for backport does not seem to make that much sense. I found #426056: Server-side enforcement of #disabled is inconsistent and #227966: Use default values to #disabled form fields with a quick search.
Comment #11
hass commentedThis one seems working for me in D6 and makes the value available after "submit", nevertheless the #disabled is TRUE:
As I'm not mister FAPI - I hope this code is correct and will not break after this bug may be fix here...