Yaron Koren has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/189966

Change subject: Fix for "uploadable" param from Page Schemas (which has no 
values)
......................................................................

Fix for "uploadable" param from Page Schemas (which has no values)

Change-Id: I5073510f7176236ec4b331207075691fc3af24b2
---
M includes/SF_FormField.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticForms 
refs/changes/66/189966/1

diff --git a/includes/SF_FormField.php b/includes/SF_FormField.php
index c567eed..aa2f9d8 100644
--- a/includes/SF_FormField.php
+++ b/includes/SF_FormField.php
@@ -319,6 +319,10 @@
                foreach ( $this->mFieldArgs as $arg => $value ) {
                        if ( $value === true ) {
                                $text .= "|$arg";
+                       } elseif ( $arg === 'uploadable' ) {
+                               // Are there similar value-less arguments
+                               // that need to be handled here?
+                               $text .= "|$arg";
                        } else {
                                $text .= "|$arg=$value";
                        }

-- 
To view, visit https://gerrit.wikimedia.org/r/189966
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5073510f7176236ec4b331207075691fc3af24b2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to