Last modified: 2012-08-27 14:17:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41683, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39683 - Current values do not show up in listbox, due to Undefined variable: cur_value
Current values do not show up in listbox, due to Undefined variable: cur_value
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
Other Linux
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-27 12:56 UTC by Chris Davis
Modified: 2012-08-27 14:17 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris Davis 2012-08-27 12:56:09 UTC
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
Comment 1 Yaron Koren 2012-08-27 14:17:47 UTC
Yikes! Thanks for pointing that out, and finding the fix. That bug had been in place for three months... I just checked in your fix.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links