Changeset 12616


Ignore:
Timestamp:
Nov 13, 2011, 12:16:22 AM (9 years 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 edited

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>
Note: See TracChangeset for help on using the changeset viewer.