https://bugzilla.wikimedia.org/show_bug.cgi?id=31336
--- Comment #3 from Van de Bugger <[email protected]> 2011-11-23 20:12:54 UTC --- Hi guys, please respond whether it is a bug in code or in documentation. If it is a bug in code, by fixing return statement in `SMW_DV_Number.php': > protected function convertToMainUnit( $number, $unit ) { > $this->m_dataitem = new SMWDINumber( $number ); > $this->m_unitin = ''; > return ( $unit === '' ); > } to > return ( preg_match( '/^(-$)/', $unit ) ); you will let `Number' ignore pseudo-units starting with dash, as described in the help: > SMW's number datatype ignores the "- description" after the number. This gives > the set of properties a numerical order and lets you make two values > equivalent. If it is a bug in documentation, page http://semantic-mediawiki.org/wiki/Property:Allows_value should be updated. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
