Last modified: 2011-11-22 18:13:53 UTC
r103048 "followup r102365: bugfix (free text dropped when editing pages)" has opposite effect on my site: before the fix free text area was populated with the page text; starting from this revision free text area is empty. I do not know why but at my site `$cur_value' has string type and empty.
Hmm... It depends either on form or on page content. Two of my forms lose free text ($cur_value is empty string), but one form works good ($cur_value is null). (It seems using string type comparators === brings a lot of mess. What the profit of replacing == with ===?)
Hi - wow, that's a serious bug. I believe I fixed it now in SVN, by changing the comparison to look for either blank or null. Thanks for diagnosing the problem. As to why '==' was replaced in the first place - that's a reasonable question. According to Jeroen, who made the original change, '==' doesn't work for certain settings of PHP.
Thanks, now it works. Verified on r103930.