r103048 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r103047
|
r103048
|
r103049
>
Date:
22:07, 14 November 2011
Author:
foxtrott
Status:
deferred
Tags:
Comment:
followup
r102365
: bugfix (free text dropped when editing pages)
Modified paths:
/trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
—
—
@@ -950,7 +950,7 @@
951
951
} else {
952
952
$sfgTabIndex++;
953
953
$sfgFieldNum++;
954
- if ( $cur_value === '' ) {
954
+ if ( is_null( $cur_value ) ) {
955
955
$default_value = '!free_text!';
956
956
} else {
957
957
$default_value = $cur_value;
Follow-up revisions
Revision
Commit summary
Author
Date
r103855
Follow-up to
r103048
- both a blank and a null check are apparently needed here
yaron
22:51, 21 November 2011
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r102365
strict comparators for empty strings
jeroendedauw
02:25, 8 November 2011