Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -256,7 +256,7 @@ |
257 | 257 | ); |
258 | 258 | } elseif ( $inLinkType == 'post button' ) { |
259 | 259 | $str = |
260 | | - Xml::tags( 'form', array('action' => $link_url, 'method' => 'get', 'class' => $classStr), |
| 260 | + Xml::tags( 'form', array('action' => $link_url, 'method' => 'post', 'class' => $classStr), |
261 | 261 | Xml::tags( 'button', array('type' => 'submit', 'value' => $inLinkStr), $inLinkStr ) . |
262 | 262 | $hidden_inputs |
263 | 263 | ); |
Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -616,6 +616,11 @@ |
617 | 617 | * type, for use by both Javascript autocompletion and comboboxes. |
618 | 618 | */ |
619 | 619 | public static function getAutocompleteValues( $source_name, $source_type ) { |
| 620 | + |
| 621 | + if ( $source_name == null ) { |
| 622 | + return null; |
| 623 | + } |
| 624 | + |
620 | 625 | $names_array = array(); |
621 | 626 | // The query depends on whether this is a property, category, |
622 | 627 | // concept or namespace. |