Show
Ignore:
Timestamp:
31.03.2014 12:17:08 (6 years ago)
Author:
kjdon
Message:

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

Files:
1 modified

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();