mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
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:
parent
3ec55b9e0a
commit
83e9b8f9de
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user