diff options
Diffstat (limited to 'views/default/input/pulldown.php')
-rw-r--r-- | views/default/input/pulldown.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/input/pulldown.php b/views/default/input/pulldown.php index 59c8a7adc..b24d92b38 100644 --- a/views/default/input/pulldown.php +++ b/views/default/input/pulldown.php @@ -21,6 +21,10 @@ if (!$class) { $class = "input_pulldown"; } +if (!isset($vars['value']) || $vars['value'] === FALSE) { + $vars['value'] = elgg_get_sticky_value($vars['internalname']); +} + ?> <select name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\""; ?> <?php echo $vars['js']; ?> <?php if ($vars['disabled']) echo ' disabled="yes" '; ?> class="<?php echo $class; ?>"> |