Changeset 7553 for modules

Show
Ignore:
Timestamp:
03/29/09 20:43:50 (4 years ago)
Author:
p_lindheimer
Message:

fixes #3604 display custom feature code if changed from default

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.6/recordings/page.recordings.php

    r7314 r7553  
    323323  $sndfile_html .=  recordings_display_sndfile('', $counter, $arraymax, $recordings_astsnd_path, $rec['fcode']); 
    324324  if ($arraymax == 0 && isset($files[0]) && substr($files[0],0,7) == 'custom/') { 
     325    if ($rec['fcode']) { 
     326      $fcc = new featurecode("recordings", 'edit-recording-'.$id); 
     327      $rec_code = $fcc->getCode(); 
     328      unset($fcc); 
     329      if ($rec_code == '') { 
     330        $rec_code = $fcbase.$id; 
     331      } 
     332    } else { 
     333        $rec_code = $fcbase.$id; 
     334    } 
    325335?> 
    326336  <tr> 
     
    328338    </td> 
    329339    <td> 
    330   <input type='checkbox' tabindex="<?php echo ++$tabindex;?>"name='fcode' id="fcode" <?php if ($rec['fcode']=="1") { echo 'CHECKED'; }?> OnClick="resetDefaultSound();"; return true;'><?php echo sprintf(_("Optional Feature Code %s"),$fcbase.$id)?> 
     340  <input type='checkbox' tabindex="<?php echo ++$tabindex;?>"name='fcode' id="fcode" <?php if ($rec['fcode']=="1") { echo 'CHECKED'; }?> OnClick="resetDefaultSound();"; return true;'><?php echo sprintf(_("Optional Feature Code %s"),$rec_code)?> 
    331341    </td> 
    332342  </tr>