Skip to content

Commit

Permalink
Merge pull request #41 from BioKIC/master
Browse files Browse the repository at this point in the history
Occurrence Editor bugs
  • Loading branch information
egbot committed Apr 4, 2021
2 parents 74f9d26 + b1a1d92 commit 608fcc3
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions collections/editor/occurrenceeditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,21 +1246,19 @@ function requestImage(){
<?php echo (defined('REPRODUCTIVECONDITIONLABEL')?REPRODUCTIVECONDITIONLABEL:'Phenology'); ?>
<a href="#" onclick="return dwcDoc('reproductiveCondition')" tabindex="-1"><img class="docimg" src="../../images/qmark.png" /></a><br/>
<?php
if(isset($reproductiveConditionTerms)){
if($reproductiveConditionTerms){
?>
<select name="reproductivecondition" onchange="fieldChanged('reproductivecondition');" tabindex="99" >
<option value="">-----------------</option>
<?php
foreach($reproductiveConditionTerms as $term){
echo '<option value="'.$term.'" '.(isset($occArr['reproductivecondition']) && $term==$occArr['reproductivecondition']?'SELECTED':'').'>'.$term.'</option>';
}
?>
</select>
if(isset($reproductiveConditionTerms) && $reproductiveConditionTerms){
?>
<select name="reproductivecondition" onchange="fieldChanged('reproductivecondition');" tabindex="99" >
<option value="">-----------------</option>
<?php
}
foreach($reproductiveConditionTerms as $term){
echo '<option value="'.$term.'" '.(isset($occArr['reproductivecondition']) && $term==$occArr['reproductivecondition']?'SELECTED':'').'>'.$term.'</option>';
}
?>
</select>
<?php
}
else '<input type="text" name="reproductivecondition" tabindex="99" maxlength="255" value="'.(array_key_exists('reproductivecondition',$occArr)?$occArr['reproductivecondition']:'').'" onchange="fieldChanged(\'reproductivecondition\');" />';
else echo '<input type="text" name="reproductivecondition" tabindex="99" maxlength="255" value="'.(array_key_exists('reproductivecondition',$occArr)?$occArr['reproductivecondition']:'').'" onchange="fieldChanged(\'reproductivecondition\');" />';
?>
</div>
<div id="establishmentMeansDiv">
Expand Down

0 comments on commit 608fcc3

Please sign in to comment.