Ignore:
Timestamp:
2014-03-31T12:17:08+13:00 (10 years ago)
Author:
kjdon
Message:

if no current value, use the default from the option - for sortfield.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/queryaction.cpp

    r28911 r28956  
    611611  text_t macrovalue = "<select name=\"sf\">\n";
    612612 
    613   if (current_value.empty()) current_value = "";
    614  
     613  if (current_value.empty()) {
     614    current_value = option.defaultValue;
     615  }
    615616  text_tarray::const_iterator thisvalue = option.validValues.begin();
    616617  text_tarray::const_iterator endvalue = option.validValues.end();
Note: See TracChangeset for help on using the changeset viewer.