https://bugzilla.wikimedia.org/show_bug.cgi?id=39683
Web browser: ---
Bug #: 39683
Summary: Current values do not show up in listbox, due to
Undefined variable: cur_value
Product: MediaWiki extensions
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: Unprioritized
Component: SemanticForms
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
In Semantic Forms 2.4.2, I noticed that listboxes don't show the current values
that I have set in the template.
Going through the Apache error logs revealed this:
PHP Notice: Undefined variable: cur_value in
./extensions/SemanticForms/includes/forminputs/SF_ListBoxInput.php on line 47
I've been able to get things running again by modifying the getHtmlText() in
SF_ListBoxInput.php as such:
$cur_values = SFUtils::getValuesArray( $this->mCurrentValue,
$delimiter );
//$cur_values = SFUtils::getValuesArray( $cur_value, $delimiter
);
Regards,
Chris
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l