MDL-30845 formslib: Freeze should always be with persistantfreeze set to false since Frozen text fields are now rendered as input fields

This commit is contained in:
Ankit Agarwal 2012-09-24 13:33:58 +08:00
parent 3ec55b9e0a
commit 83e9b8f9de

View File

@ -64,6 +64,20 @@ class MoodleQuickForm_text extends HTML_QuickForm_text{
$this->_hiddenLabel = $hiddenLabel;
}
/**
* Freeze the element so that only its value is returned and set persistantfreeze to false
*
* @since 2.4
* @access public
* @return void
*/
function freeze()
{
$this->_flagFrozen = true;
// No hidden element is needed refer MDL-30845
$this->setPersistantFreeze(false);
} //end func freeze
/**
* Returns the html to be used when the element is frozen
*