r114080 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114079‎ | r114080 | r114081 >
Date:22:19, 17 March 2012
Author:foxtrott
Status:deferred
Tags:
Comment:
bugfix (Autoedit behaves odd since upgrade from SF2.2.1 to SF 2.4.1)
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php
@@ -397,8 +397,9 @@
398398 switch ( $type ) {
399399 case 'checkbox':
400400 case 'radio':
401 - if ( $input->getAttribute( 'checked' ) )
 401+ if ( $input->hasAttribute( 'checked' ) ) {
402402 self::addToArray( $data, $name, $input->getAttribute( 'value' ) );
 403+ }
403404 break;
404405
405406 // case 'button':

Status & tagging log