Changeset 12616

Show
Ignore:
Timestamp:
11/13/11 00:16:22 (19 months ago)
Author:
plg
Message:

bug 2505 fixed: uploading more than 10 photos (using specific code in mass_updates) doesn't show MySQL warning and doesn't fail on set photo properties

Location:
extensions/community
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • extensions/community/add_photos.php

    r12333 r12616  
    7878  $page['infos'] = array(); 
    7979 
    80   if (isset($_POST['name'])) 
     80  if (isset($_POST['set_photo_properties'])) 
    8181  { 
    8282    $data = array(); 
     
    107107      array( 
    108108        'primary' => array('id'), 
    109         'update' => array_keys($updates[0]) 
     109        'update' => array_diff(array_keys($updates[0]), array('id')) 
    110110        ), 
    111111      $updates 
  • extensions/community/add_photos.tpl

    r12333 r12616  
    162162    jQuery(this).parent(".showFieldset").hide(); 
    163163    jQuery("#photoProperties").show(); 
     164    jQuery("input[name=set_photo_properties]").attr('checked', true); 
    164165  }); 
    165166 
     
    464465      <legend>{'Photo Properties'|@translate}</legend> 
    465466 
     467      <input type="checkbox" name="set_photo_properties" style="display:none"> 
     468 
    466469      <p> 
    467470        {'Name'|@translate}<br>