var r=document.getElementById('revert_'); if (this.value=='Revert') { /* hide default input field(s) - q var show revert to state as of datetime - r var hide findreplace fr var */ q.style.display='none'; r.style.display='block'; fr.style.display='none'; /* cf refers to copy from field - not always present, e.g. date field */ if (typeof cf !== 'undefined') { // the variable is defined cf.style.display='none'; } let existingoptions = document.getElementById('displayexisting_'); if (existingoptions !== null) { existingoptions.style.display='none'; } } else { r.style.display='none'; } = ? ORDER BY ref ASC LIMIT 1;",$parameters,null); if(!is_null($archive_status_at_date) && trim($archive_status_at_date) !== "" && is_numeric($archive_status_at_date)) { return $archive_status_at_date; } return $old_archive; }