Yaron Koren has submitted this change and it was merged.

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(-)

Approvals:
  Yaron Koren: Checked; Looks good to me, approved



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: merged
Gerrit-Change-Id: I5073510f7176236ec4b331207075691fc3af24b2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to