Page MenuHomePhabricator

Current values do not show up in listbox, due to Undefined variable: cur_value
Closed, ResolvedPublic

Description

Author: c_b_dvs

Description:
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


Version: unspecified
Severity: normal
OS: Linux
Platform: Other

Details

Reference
bz39683

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:12 AM
bzimport set Reference to bz39683.

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.