Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I found wrong checking for multiple field on "override" form.
This checking
function _assets_clean_fields(&$form, $options = array()) {
...
$multiple = isset($elements['#cardinality']) && ($elements['#cardinality'] > 1 || $elements['#cardinality']) == FIELD_CARDINALITY_UNLIMITED;
Should be
function _assets_clean_fields(&$form, $options = array()) {
...
$multiple = isset($elements['#cardinality']) && ($elements['#cardinality'] > 1 || $elements['#cardinality'] == FIELD_CARDINALITY_UNLIMITED );
...
Comment | File | Size | Author |
---|---|---|---|
#2 | wrong-checking-for-multiple-field-1898690-2.patch | 753 bytes | mattew |
Comments
Comment #1
agalitsyn CreditAttribution: agalitsyn commentedPushed to 7.x-1.x-dev
Comment #2
mattew CreditAttribution: mattew at Genious Interactive commentedSorry, I don't know why but this fix is not part of the last beta4, even if the agalitsyn comment date is 31 january 2013 and the last beta4+26 date is 20 february 2013...
And when I browse the repository, the fix is not applied in 7.x-1.x : http://cgit.drupalcode.org/asset/tree/includes/asset.admin.inc#n411
So, there is the patch...
Comment #4
IRuslan CreditAttribution: IRuslan as a volunteer and at DrupalJedi commentedPushed to dev branch.