Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_TypeList.php |
— | — | @@ -75,11 +75,11 @@ |
76 | 76 | $stringvalue .= $tv->getDBkey(); |
77 | 77 | } |
78 | 78 | try { |
79 | | - $this->m_dataitem = new SMWDIString( $stringvalue ); |
| 79 | + $this->m_dataitem = new SMWDIString( $stringvalue, $this->m_typeid ); |
80 | 80 | } catch ( SMWStringLengthException $e ) { |
81 | 81 | smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
82 | 82 | $this->addError( wfMsgForContent( 'smw_maxstring', '"' . $stringvalue . '"' ) ); |
83 | | - $this->m_dataitem = new SMWDIString( 'ERROR' ); |
| 83 | + $this->m_dataitem = new SMWDIString( 'ERROR', $this->m_typeid ); |
84 | 84 | } |
85 | 85 | } |
86 | 86 | |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | } |
102 | 102 | |
103 | 103 | public function getShortWikiText( $linked = null ) { |
104 | | - return ( $this->m_caption !== false ) ? $this->m_caption : $this->makeOutputText( 0, $linked ); |
| 104 | + return ( $this->m_caption !== false ) ? $this->m_caption : $this->makeOutputText( 0, $linked ); |
105 | 105 | } |
106 | 106 | |
107 | 107 | public function getShortHTMLText( $linker = null ) { |